Modules

Profiler
extends Kohana_Profiler

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

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

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1419118896.8917
        "start_memory" => integer 1988816
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8917
        "start_memory" => integer 1991160
        "stop_time" => float 1419118896.8917
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8918
        "start_memory" => integer 1996704
        "stop_time" => float 1419118896.8918
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8923
        "start_memory" => integer 2122840
        "stop_time" => float 1419118896.8924
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8927
        "start_memory" => integer 2128312
        "stop_time" => float 1419118896.8927
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8928
        "start_memory" => integer 2140008
        "stop_time" => float 1419118896.8929
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8929
        "start_memory" => integer 2145264
        "stop_time" => float 1419118896.893
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8931
        "start_memory" => integer 2155120
        "stop_time" => float 1419118896.8931
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8932
        "start_memory" => integer 2160312
        "stop_time" => float 1419118896.8932
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8939
        "start_memory" => integer 2321712
        "stop_time" => float 1419118896.894
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.894
        "start_memory" => integer 2327120
        "stop_time" => float 1419118896.8941
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8942
        "start_memory" => integer 2341168
        "stop_time" => float 1419118896.8943
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8943
        "start_memory" => integer 2346352
        "stop_time" => float 1419118896.8944
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8946
        "start_memory" => integer 2401744
        "stop_time" => float 1419118896.8947
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8947
        "start_memory" => integer 2403496
        "stop_time" => float 1419118896.8948
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8949
        "start_memory" => integer 2408944
        "stop_time" => float 1419118896.8949
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8952
        "start_memory" => integer 2474968
        "stop_time" => float 1419118896.8952
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8952
        "start_memory" => integer 2476368
        "stop_time" => float 1419118896.8953
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8978
        "start_memory" => integer 3145592
        "stop_time" => float 1419118896.8978
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8979
        "start_memory" => integer 3151800
        "stop_time" => float 1419118896.8979
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8982
        "start_memory" => integer 3185112
        "stop_time" => float 1419118896.8982
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8983
        "start_memory" => integer 3190296
        "stop_time" => float 1419118896.8984
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8991
        "start_memory" => integer 3352496
        "stop_time" => float 1419118896.8991
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8992
        "start_memory" => integer 3357952
        "stop_time" => float 1419118896.8992
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8993
        "start_memory" => integer 3361224
        "stop_time" => float 1419118896.8993
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8994
        "start_memory" => integer 3366656
        "stop_time" => float 1419118896.8994
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8997
        "start_memory" => integer 3416904
        "stop_time" => float 1419118896.8998
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.8999
        "start_memory" => integer 3422120
        "stop_time" => float 1419118896.8999
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9008
        "start_memory" => integer 3520768
        "stop_time" => float 1419118896.9009
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.902
        "start_memory" => integer 3525944
        "stop_time" => float 1419118896.902
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9035
        "start_memory" => integer 3611128
        "stop_time" => float 1419118896.9036
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9568
        "start_memory" => integer 3653872
        "stop_time" => float 1419118896.9569
        "stop_memory" => integer 3654432
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.957
        "start_memory" => integer 3659096
        "stop_time" => float 1419118896.957
        "stop_memory" => integer 3659928
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9577
        "start_memory" => integer 3700528
        "stop_time" => float 1419118896.9578
        "stop_memory" => integer 3701080
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9578
        "start_memory" => integer 3705912
        "stop_time" => float 1419118896.9579
        "stop_memory" => integer 3706488
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9585
        "start_memory" => integer 3730184
        "stop_time" => float 1419118896.9586
        "stop_memory" => integer 3730736
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9587
        "start_memory" => integer 3735440
        "stop_time" => float 1419118896.9587
        "stop_memory" => integer 3736016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9595
        "start_memory" => integer 3803168
        "stop_time" => float 1419118896.9595
        "stop_memory" => integer 3803752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9597
        "start_memory" => integer 3821744
        "stop_time" => float 1419118896.9597
        "stop_memory" => integer 3822304
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9598
        "start_memory" => integer 3827168
        "stop_time" => float 1419118896.9598
        "stop_memory" => integer 3827752
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9603
        "start_memory" => integer 3892880
        "stop_time" => float 1419118896.9603
        "stop_memory" => integer 3893456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9606
        "start_memory" => integer 3912880
        "stop_time" => float 1419118896.9606
        "stop_memory" => integer 3913456
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9611
        "start_memory" => integer 3961528
        "stop_time" => float 1419118896.9611
        "stop_memory" => integer 3962104
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9613
        "start_memory" => integer 3972768
        "stop_time" => float 1419118896.9613
        "stop_memory" => integer 3973344
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9616
        "start_memory" => integer 3991352
        "stop_time" => float 1419118896.9616
        "stop_memory" => integer 3991928
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9619
        "start_memory" => integer 4001624
        "stop_time" => float 1419118896.962
        "stop_memory" => integer 4002200
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9622
        "start_memory" => integer 4022328
        "stop_time" => float 1419118896.9622
        "stop_memory" => integer 4022904
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9624
        "start_memory" => integer 4043384
        "stop_time" => float 1419118896.9625
        "stop_memory" => integer 4043976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9627
        "start_memory" => integer 4057216
        "stop_time" => float 1419118896.9627
        "stop_memory" => integer 4057784
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.963
        "start_memory" => integer 4070024
        "stop_time" => float 1419118896.963
        "stop_memory" => integer 4070600
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9633
        "start_memory" => integer 4118896
        "stop_time" => float 1419118896.9633
        "stop_memory" => integer 4119456
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9636
        "start_memory" => integer 4157928
        "stop_time" => float 1419118896.9636
        "stop_memory" => integer 4158512
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.964
        "start_memory" => integer 4177912
        "stop_time" => float 1419118896.964
        "stop_memory" => integer 4178488
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9643
        "start_memory" => integer 4209648
        "stop_time" => float 1419118896.9644
        "stop_memory" => integer 4210224
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9647
        "start_memory" => integer 4228936
        "stop_time" => float 1419118896.9647
        "stop_memory" => integer 4229480
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9648
        "start_memory" => integer 4234152
        "stop_time" => float 1419118896.9648
        "stop_memory" => integer 4234728
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.965
        "start_memory" => integer 4265568
        "stop_time" => float 1419118896.965
        "stop_memory" => integer 4266104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9651
        "start_memory" => integer 4270768
        "stop_time" => float 1419118896.9652
        "stop_memory" => integer 4271336
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9672
        "start_memory" => integer 4412896
        "stop_time" => float 1419118896.9674
        "stop_memory" => integer 4413472
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9759
        "start_memory" => integer 4466272
        "stop_time" => float 1419118896.976
        "stop_memory" => integer 4466824
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9763
        "start_memory" => integer 4471656
        "stop_time" => float 1419118896.9763
        "stop_memory" => integer 4472232
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9815
        "start_memory" => integer 4497744
        "stop_time" => float 1419118896.9815
        "stop_memory" => integer 4498328
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9816
        "start_memory" => integer 4503280
        "stop_time" => float 1419118896.9816
        "stop_memory" => integer 4503856
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9859
        "start_memory" => integer 4529472
        "stop_time" => float 1419118896.9859
        "stop_memory" => integer 4530032
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9861
        "start_memory" => integer 4534888
        "stop_time" => float 1419118896.9861
        "stop_memory" => integer 4535968
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9866
        "start_memory" => integer 4624688
        "stop_time" => float 1419118896.9866
        "stop_memory" => integer 4625288
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9914
        "start_memory" => integer 4632208
        "stop_time" => float 1419118896.9914
        "stop_memory" => integer 4632760
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118896.9915
        "start_memory" => integer 4637640
        "stop_time" => float 1419118896.9915
        "stop_memory" => integer 4638224
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0053
        "start_memory" => integer 4695088
        "stop_time" => float 1419118897.0054
        "stop_memory" => integer 4695648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0055
        "start_memory" => integer 4700568
        "stop_time" => float 1419118897.0055
        "stop_memory" => integer 4701152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0057
        "start_memory" => integer 4724960
        "stop_time" => float 1419118897.0057
        "stop_memory" => integer 4725536
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0063
        "start_memory" => integer 4734616
        "stop_time" => float 1419118897.0063
        "stop_memory" => integer 4735176
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0064
        "start_memory" => integer 4740040
        "stop_time" => float 1419118897.0064
        "stop_memory" => integer 4740624
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0073
        "start_memory" => integer 4820128
        "stop_time" => float 1419118897.0073
        "stop_memory" => integer 4820688
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0074
        "start_memory" => integer 4825600
        "stop_time" => float 1419118897.0074
        "stop_memory" => integer 4826176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0124
        "start_memory" => integer 4851864
        "stop_time" => float 1419118897.0125
        "stop_memory" => integer 4852424
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0126
        "start_memory" => integer 4857288
        "stop_time" => float 1419118897.0126
        "stop_memory" => integer 4857872
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0133
        "start_memory" => integer 4879280
        "stop_time" => float 1419118897.0133
        "stop_memory" => integer 4879808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0134
        "start_memory" => integer 4884456
        "stop_time" => float 1419118897.0135
        "stop_memory" => integer 4885032
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0151
        "start_memory" => integer 4895888
        "stop_time" => float 1419118897.0151
        "stop_memory" => integer 4896480
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0152
        "start_memory" => integer 4901368
        "stop_time" => float 1419118897.0152
        "stop_memory" => integer 4901944
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0187
        "start_memory" => integer 4946880
        "stop_time" => float 1419118897.0187
        "stop_memory" => integer 4947456
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0193
        "start_memory" => integer 4958592
        "stop_time" => float 1419118897.0193
        "stop_memory" => integer 4959136
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0194
        "start_memory" => integer 4963992
        "stop_time" => float 1419118897.0194
        "stop_memory" => integer 4964568
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0228
        "start_memory" => integer 4987064
        "stop_time" => float 1419118897.0228
        "stop_memory" => integer 4987632
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0245
        "start_memory" => integer 4993200
        "stop_time" => float 1419118897.0246
        "stop_memory" => integer 4993768
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0247
        "start_memory" => integer 4998616
        "stop_time" => float 1419118897.0247
        "stop_memory" => integer 4999200
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0267
        "start_memory" => integer 5132928
        "stop_time" => float 1419118897.0268
        "stop_memory" => integer 5133504
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0268
        "start_memory" => integer 5138456
        "stop_time" => float 1419118897.0269
        "stop_memory" => integer 5139048
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0274
        "start_memory" => integer 5153912
        "stop_time" => float 1419118897.0274
        "stop_memory" => integer 5154480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0275
        "start_memory" => integer 5159456
        "stop_time" => float 1419118897.0275
        "stop_memory" => integer 5160048
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0288
        "start_memory" => integer 5165968
        "stop_time" => float 1419118897.0289
        "stop_memory" => integer 5166520
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0289
        "start_memory" => integer 5171384
        "stop_time" => float 1419118897.029
        "stop_memory" => integer 5171968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0301
        "start_memory" => integer 5316576
        "stop_time" => float 1419118897.0301
        "stop_memory" => integer 5317152
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0302
        "start_memory" => integer 5322112
        "stop_time" => float 1419118897.0302
        "stop_memory" => integer 5322704
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0304
        "start_memory" => integer 5343384
        "stop_time" => float 1419118897.0304
        "stop_memory" => integer 5343952
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0305
        "start_memory" => integer 5348840
        "stop_time" => float 1419118897.0305
        "stop_memory" => integer 5349416
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0316
        "start_memory" => integer 5411720
        "stop_time" => float 1419118897.0316
        "stop_memory" => integer 5412280
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0317
        "start_memory" => integer 5417152
        "stop_time" => float 1419118897.0317
        "stop_memory" => integer 5417736
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0325
        "start_memory" => integer 5483240
        "stop_time" => float 1419118897.0326
        "stop_memory" => integer 5483800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0326
        "start_memory" => integer 5488664
        "stop_time" => float 1419118897.0327
        "stop_memory" => integer 5489248
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0336
        "start_memory" => integer 5531904
        "stop_time" => float 1419118897.0336
        "stop_memory" => integer 5532480
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0337
        "start_memory" => integer 5537448
        "stop_time" => float 1419118897.0337
        "stop_memory" => integer 5538040
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0346
        "start_memory" => integer 5596880
        "stop_time" => float 1419118897.0347
        "stop_memory" => integer 5597464
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0348
        "start_memory" => integer 5602528
        "stop_time" => float 1419118897.0348
        "stop_memory" => integer 5603128
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0349
        "start_memory" => integer 5622800
        "stop_time" => float 1419118897.0349
        "stop_memory" => integer 5623376
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.035
        "start_memory" => integer 5628440
        "stop_time" => float 1419118897.035
        "stop_memory" => integer 5629040
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.036
        "start_memory" => integer 5693440
        "stop_time" => float 1419118897.036
        "stop_memory" => integer 5694016
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0361
        "start_memory" => integer 5699080
        "stop_time" => float 1419118897.0361
        "stop_memory" => integer 5699680
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.037
        "start_memory" => integer 5748008
        "stop_time" => float 1419118897.037
        "stop_memory" => integer 5748584
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0372
        "start_memory" => integer 5753640
        "stop_time" => float 1419118897.0372
        "stop_memory" => integer 5754240
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.038
        "start_memory" => integer 5795544
        "stop_time" => float 1419118897.0381
        "stop_memory" => integer 5796120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0382
        "start_memory" => integer 5801184
        "stop_time" => float 1419118897.0382
        "stop_memory" => integer 5801784
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0394
        "start_memory" => integer 5914712
        "stop_time" => float 1419118897.0394
        "stop_memory" => integer 5915288
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0395
        "start_memory" => integer 5920352
        "stop_time" => float 1419118897.0395
        "stop_memory" => integer 5920952
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0417
        "start_memory" => integer 5969600
        "stop_time" => float 1419118897.0418
        "stop_memory" => integer 5970160
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0419
        "start_memory" => integer 5975128
        "stop_time" => float 1419118897.0419
        "stop_memory" => integer 5975720
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0427
        "start_memory" => integer 5998848
        "stop_time" => float 1419118897.0428
        "stop_memory" => integer 5999368
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0428
        "start_memory" => integer 6004008
        "stop_time" => float 1419118897.0429
        "stop_memory" => integer 6004576
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0439
        "start_memory" => integer 6119248
        "stop_time" => float 1419118897.0439
        "stop_memory" => integer 6119808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.044
        "start_memory" => integer 6124480
        "stop_time" => float 1419118897.0441
        "stop_memory" => integer 6125072
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0484
        "start_memory" => integer 6145392
        "stop_time" => float 1419118897.0485
        "stop_memory" => integer 6145928
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0486
        "start_memory" => integer 6150576
        "stop_time" => float 1419118897.0486
        "stop_memory" => integer 6151144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0515
        "start_memory" => integer 6187824
        "stop_time" => float 1419118897.0515
        "stop_memory" => integer 6188368
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0516
        "start_memory" => integer 6193008
        "stop_time" => float 1419118897.0517
        "stop_memory" => integer 6193576
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0524
        "start_memory" => integer 6235968
        "stop_time" => float 1419118897.0524
        "stop_memory" => integer 6236512
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0525
        "start_memory" => integer 6241152
        "stop_time" => float 1419118897.0526
        "stop_memory" => integer 6241720
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0533
        "start_memory" => integer 6285912
        "stop_time" => float 1419118897.0534
        "stop_memory" => integer 6286456
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0535
        "start_memory" => integer 6291104
        "stop_time" => float 1419118897.0535
        "stop_memory" => integer 6292696
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0549
        "start_memory" => integer 6368200
        "stop_time" => float 1419118897.0549
        "stop_memory" => integer 6368744
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.055
        "start_memory" => integer 6373400
        "stop_time" => float 1419118897.055
        "stop_memory" => integer 6373968
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.057
        "start_memory" => integer 6396152
        "stop_time" => float 1419118897.057
        "stop_memory" => integer 6396712
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0571
        "start_memory" => integer 6401352
        "stop_time" => float 1419118897.0571
        "stop_memory" => integer 6401920
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0583
        "start_memory" => integer 6431064
        "stop_time" => float 1419118897.0584
        "stop_memory" => integer 6431624
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0584
        "start_memory" => integer 6436472
        "stop_time" => float 1419118897.0585
        "stop_memory" => integer 6437048
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0591
        "start_memory" => integer 6457360
        "stop_time" => float 1419118897.0592
        "stop_memory" => integer 6457928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0593
        "start_memory" => integer 6462864
        "stop_time" => float 1419118897.0593
        "stop_memory" => integer 6463448
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0599
        "start_memory" => integer 6478472
        "stop_time" => float 1419118897.0599
        "stop_memory" => integer 6479032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.06
        "start_memory" => integer 6483968
        "stop_time" => float 1419118897.0601
        "stop_memory" => integer 6484552
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0606
        "start_memory" => integer 6499592
        "stop_time" => float 1419118897.0607
        "stop_memory" => integer 6500152
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0608
        "start_memory" => integer 6505088
        "stop_time" => float 1419118897.0609
        "stop_memory" => integer 6505672
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0615
        "start_memory" => integer 6520720
        "stop_time" => float 1419118897.0615
        "stop_memory" => integer 6521280
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0616
        "start_memory" => integer 6526216
        "stop_time" => float 1419118897.0616
        "stop_memory" => integer 6526800
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0622
        "start_memory" => integer 6541824
        "stop_time" => float 1419118897.0623
        "stop_memory" => integer 6542384
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0624
        "start_memory" => integer 6547320
        "stop_time" => float 1419118897.0624
        "stop_memory" => integer 6547904
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0629
        "start_memory" => integer 6562928
        "stop_time" => float 1419118897.063
        "stop_memory" => integer 6563488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0631
        "start_memory" => integer 6568424
        "stop_time" => float 1419118897.0631
        "stop_memory" => integer 6569008
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0637
        "start_memory" => integer 6584064
        "stop_time" => float 1419118897.0637
        "stop_memory" => integer 6584624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0638
        "start_memory" => integer 6589560
        "stop_time" => float 1419118897.0639
        "stop_memory" => integer 6590144
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0644
        "start_memory" => integer 6605168
        "stop_time" => float 1419118897.0645
        "stop_memory" => integer 6605728
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0645
        "start_memory" => integer 6610664
        "stop_time" => float 1419118897.0646
        "stop_memory" => integer 6611248
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0651
        "start_memory" => integer 6626384
        "stop_time" => float 1419118897.0652
        "stop_memory" => integer 6626944
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0653
        "start_memory" => integer 6631880
        "stop_time" => float 1419118897.0653
        "stop_memory" => integer 6632464
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0659
        "start_memory" => integer 6647496
        "stop_time" => float 1419118897.066
        "stop_memory" => integer 6648056
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0661
        "start_memory" => integer 6652992
        "stop_time" => float 1419118897.0661
        "stop_memory" => integer 6653576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0667
        "start_memory" => integer 6668616
        "stop_time" => float 1419118897.0667
        "stop_memory" => integer 6669176
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0668
        "start_memory" => integer 6674112
        "stop_time" => float 1419118897.0669
        "stop_memory" => integer 6674696
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0675
        "start_memory" => integer 6689704
        "stop_time" => float 1419118897.0675
        "stop_memory" => integer 6690264
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0676
        "start_memory" => integer 6695200
        "stop_time" => float 1419118897.0676
        "stop_memory" => integer 6695784
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0683
        "start_memory" => integer 6710808
        "stop_time" => float 1419118897.0683
        "stop_memory" => integer 6711368
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0684
        "start_memory" => integer 6716304
        "stop_time" => float 1419118897.0685
        "stop_memory" => integer 6716888
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0691
        "start_memory" => integer 6731912
        "stop_time" => float 1419118897.0691
        "stop_memory" => integer 6732472
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0692
        "start_memory" => integer 6737408
        "stop_time" => float 1419118897.0692
        "stop_memory" => integer 6737992
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0698
        "start_memory" => integer 6753056
        "stop_time" => float 1419118897.0698
        "stop_memory" => integer 6753616
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0699
        "start_memory" => integer 6758552
        "stop_time" => float 1419118897.0699
        "stop_memory" => integer 6759136
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0705
        "start_memory" => integer 6774192
        "stop_time" => float 1419118897.0706
        "stop_memory" => integer 6774752
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0707
        "start_memory" => integer 6779688
        "stop_time" => float 1419118897.0707
        "stop_memory" => integer 6780272
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0713
        "start_memory" => integer 6795448
        "stop_time" => float 1419118897.0714
        "stop_memory" => integer 6796008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0714
        "start_memory" => integer 6800944
        "stop_time" => float 1419118897.0715
        "stop_memory" => integer 6801528
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0721
        "start_memory" => integer 6816584
        "stop_time" => float 1419118897.0722
        "stop_memory" => integer 6817144
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0722
        "start_memory" => integer 6822080
        "stop_time" => float 1419118897.0723
        "stop_memory" => integer 6822664
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0729
        "start_memory" => integer 6837720
        "stop_time" => float 1419118897.0729
        "stop_memory" => integer 6838280
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.073
        "start_memory" => integer 6843216
        "stop_time" => float 1419118897.073
        "stop_memory" => integer 6843800
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0736
        "start_memory" => integer 6858848
        "stop_time" => float 1419118897.0736
        "stop_memory" => integer 6859408
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0737
        "start_memory" => integer 6864344
        "stop_time" => float 1419118897.0738
        "stop_memory" => integer 6864928
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0744
        "start_memory" => integer 6879952
        "stop_time" => float 1419118897.0744
        "stop_memory" => integer 6880512
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0745
        "start_memory" => integer 6885448
        "stop_time" => float 1419118897.0745
        "stop_memory" => integer 6886032
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0751
        "start_memory" => integer 6901056
        "stop_time" => float 1419118897.0751
        "stop_memory" => integer 6901616
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0752
        "start_memory" => integer 6906552
        "stop_time" => float 1419118897.0753
        "stop_memory" => integer 6907136
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0758
        "start_memory" => integer 6922192
        "stop_time" => float 1419118897.0759
        "stop_memory" => integer 6922752
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0759
        "start_memory" => integer 6927688
        "stop_time" => float 1419118897.076
        "stop_memory" => integer 6928272
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0765
        "start_memory" => integer 6943312
        "stop_time" => float 1419118897.0766
        "stop_memory" => integer 6943872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0767
        "start_memory" => integer 6948808
        "stop_time" => float 1419118897.0767
        "stop_memory" => integer 6949392
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.078
        "start_memory" => integer 6964656
        "stop_time" => float 1419118897.0781
        "stop_memory" => integer 6965216
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0781
        "start_memory" => integer 6970128
        "stop_time" => float 1419118897.0782
        "stop_memory" => integer 6970696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0806
        "start_memory" => integer 7008720
        "stop_time" => float 1419118897.0806
        "stop_memory" => integer 7009272
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0807
        "start_memory" => integer 7013944
        "stop_time" => float 1419118897.0807
        "stop_memory" => integer 7014520
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0817
        "start_memory" => integer 7145584
        "stop_time" => float 1419118897.0818
        "stop_memory" => integer 7146136
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0819
        "start_memory" => integer 7150816
        "stop_time" => float 1419118897.0819
        "stop_memory" => integer 7151392
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0832
        "start_memory" => integer 7320576
        "stop_time" => float 1419118897.0832
        "stop_memory" => integer 7321128
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0833
        "start_memory" => integer 7325816
        "stop_time" => float 1419118897.0833
        "stop_memory" => integer 7326376
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0854
        "start_memory" => integer 7382040
        "stop_time" => float 1419118897.0855
        "stop_memory" => integer 7382616
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0855
        "start_memory" => integer 7387528
        "stop_time" => float 1419118897.0856
        "stop_memory" => integer 7388096
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0862
        "start_memory" => integer 7428128
        "stop_time" => float 1419118897.0862
        "stop_memory" => integer 7428704
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0863
        "start_memory" => integer 7433656
        "stop_time" => float 1419118897.0863
        "stop_memory" => integer 7434248
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0877
        "start_memory" => integer 7460192
        "stop_time" => float 1419118897.0877
        "stop_memory" => integer 7460760
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0878
        "start_memory" => integer 7465632
        "stop_time" => float 1419118897.0879
        "stop_memory" => integer 7466208
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0896
        "start_memory" => integer 7492264
        "stop_time" => float 1419118897.0897
        "stop_memory" => integer 7492840
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0925
        "start_memory" => integer 7503744
        "stop_time" => float 1419118897.0926
        "stop_memory" => integer 7504304
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0928
        "start_memory" => integer 7514168
        "stop_time" => float 1419118897.0929
        "stop_memory" => integer 7514736
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0941
        "start_memory" => integer 7525336
        "stop_time" => float 1419118897.0941
        "stop_memory" => integer 7525888
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0942
        "start_memory" => integer 7530616
        "stop_time" => float 1419118897.0942
        "stop_memory" => integer 7531192
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0947
        "start_memory" => integer 7536656
        "stop_time" => float 1419118897.0947
        "stop_memory" => integer 7537208
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0948
        "start_memory" => integer 7541936
        "stop_time" => float 1419118897.0949
        "stop_memory" => integer 7542512
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0954
        "start_memory" => integer 7547960
        "stop_time" => float 1419118897.0954
        "stop_memory" => integer 7548512
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0955
        "start_memory" => integer 7553264
        "stop_time" => float 1419118897.0955
        "stop_memory" => integer 7553840
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0964
        "start_memory" => integer 7565848
        "stop_time" => float 1419118897.0964
        "stop_memory" => integer 7566384
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0965
        "start_memory" => integer 7571048
        "stop_time" => float 1419118897.0965
        "stop_memory" => integer 7571616
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.097
        "start_memory" => integer 7574664
        "stop_time" => float 1419118897.097
        "stop_memory" => integer 7575240
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0971
        "start_memory" => integer 7584512
        "stop_time" => float 1419118897.0971
        "stop_memory" => integer 7585048
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0972
        "start_memory" => integer 7589696
        "stop_time" => float 1419118897.0972
        "stop_memory" => integer 7590264
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0988
        "start_memory" => integer 7965664
        "stop_time" => float 1419118897.0989
        "stop_memory" => integer 7966240
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.0995
        "start_memory" => integer 8044808
        "stop_time" => float 1419118897.0995
        "stop_memory" => integer 8045392
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1001
        "start_memory" => integer 8090616
        "stop_time" => float 1419118897.1001
        "stop_memory" => integer 8091176
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1002
        "start_memory" => integer 8096040
        "stop_time" => float 1419118897.1002
        "stop_memory" => integer 8096624
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1007
        "start_memory" => integer 8105584
        "stop_time" => float 1419118897.1007
        "stop_memory" => integer 8106128
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1011
        "start_memory" => integer 8137592
        "stop_time" => float 1419118897.1012
        "stop_memory" => integer 8138152
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1017
        "start_memory" => integer 8172576
        "stop_time" => float 1419118897.1017
        "stop_memory" => integer 8173152
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1022
        "start_memory" => integer 8205248
        "stop_time" => float 1419118897.1022
        "stop_memory" => integer 8205784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1023
        "start_memory" => integer 8210440
        "stop_time" => float 1419118897.1023
        "stop_memory" => integer 8211008
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1042
        "start_memory" => integer 8252816
        "stop_time" => float 1419118897.1043
        "stop_memory" => integer 8253408
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1044
        "start_memory" => integer 8258592
        "stop_time" => float 1419118897.1044
        "stop_memory" => integer 8259184
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1065
        "start_memory" => integer 8303280
        "stop_time" => float 1419118897.1067
        "stop_memory" => integer 8303832
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1067
        "start_memory" => integer 8308768
        "stop_time" => float 1419118897.1068
        "stop_memory" => integer 8309352
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1103
        "start_memory" => integer 8411040
        "stop_time" => float 1419118897.1103
        "stop_memory" => integer 8411568
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1104
        "start_memory" => integer 8416224
        "stop_time" => float 1419118897.1104
        "stop_memory" => integer 8416792
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1109
        "start_memory" => integer 8431720
        "stop_time" => float 1419118897.111
        "stop_memory" => integer 8432272
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.111
        "start_memory" => integer 8436920
        "stop_time" => float 1419118897.1111
        "stop_memory" => integer 8437488
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1118
        "start_memory" => integer 8503920
        "stop_time" => float 1419118897.1118
        "stop_memory" => integer 8504480
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1119
        "start_memory" => integer 8509336
        "stop_time" => float 1419118897.1119
        "stop_memory" => integer 8509912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1124
        "start_memory" => integer 8533352
        "stop_time" => float 1419118897.1124
        "stop_memory" => integer 8533960
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1125
        "start_memory" => integer 8538880
        "stop_time" => float 1419118897.1125
        "stop_memory" => integer 8539472
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1136
        "start_memory" => integer 8610480
        "stop_time" => float 1419118897.1136
        "stop_memory" => integer 8611016
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1137
        "start_memory" => integer 8615888
        "stop_time" => float 1419118897.1138
        "stop_memory" => integer 8616440
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1143
        "start_memory" => integer 8644144
        "stop_time" => float 1419118897.1143
        "stop_memory" => integer 8644680
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1144
        "start_memory" => integer 8649336
        "stop_time" => float 1419118897.1144
        "stop_memory" => integer 8649904
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1154
        "start_memory" => integer 8771128
        "stop_time" => float 1419118897.1155
        "stop_memory" => integer 8771672
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1156
        "start_memory" => integer 8776344
        "stop_time" => float 1419118897.1156
        "stop_memory" => integer 8776912
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.12
        "start_memory" => integer 8808296
        "stop_time" => float 1419118897.12
        "stop_memory" => integer 8808840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1201
        "start_memory" => integer 8813488
        "stop_time" => float 1419118897.1201
        "stop_memory" => integer 8814056
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.121
        "start_memory" => integer 8914344
        "stop_time" => float 1419118897.1211
        "stop_memory" => integer 8914904
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1212
        "start_memory" => integer 8919616
        "stop_time" => float 1419118897.1212
        "stop_memory" => integer 8920192
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1221
        "start_memory" => integer 9027936
        "stop_time" => float 1419118897.1222
        "stop_memory" => integer 9028504
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1222
        "start_memory" => integer 9033424
        "stop_time" => float 1419118897.1223
        "stop_memory" => integer 9034008
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1231
        "start_memory" => integer 9055192
        "stop_time" => float 1419118897.1232
        "stop_memory" => integer 9055768
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1234
        "start_memory" => integer 9020248
        "stop_time" => float 1419118897.1235
        "stop_memory" => integer 9022184
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.124
        "start_memory" => integer 9092904
        "stop_time" => float 1419118897.124
        "stop_memory" => integer 9094632
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1419118897.1241
        "start_memory" => integer 9094392
        "stop_time" => float 1419118897.1241
        "stop_memory" => integer 9096120
    )
)

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