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 1417245472.8879
        "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 1417245472.8879
        "start_memory" => integer 1991160
        "stop_time" => float 1417245472.888
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8881
        "start_memory" => integer 1996704
        "stop_time" => float 1417245472.8881
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8888
        "start_memory" => integer 2122840
        "stop_time" => float 1417245472.8889
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8889
        "start_memory" => integer 2128312
        "stop_time" => float 1417245472.889
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8891
        "start_memory" => integer 2140008
        "stop_time" => float 1417245472.8892
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8893
        "start_memory" => integer 2145264
        "stop_time" => float 1417245472.8893
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8895
        "start_memory" => integer 2155120
        "stop_time" => float 1417245472.8895
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8896
        "start_memory" => integer 2160312
        "stop_time" => float 1417245472.8896
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8905
        "start_memory" => integer 2321712
        "stop_time" => float 1417245472.8905
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8906
        "start_memory" => integer 2327120
        "stop_time" => float 1417245472.8907
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8912
        "start_memory" => integer 2341168
        "stop_time" => float 1417245472.8912
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8913
        "start_memory" => integer 2346352
        "stop_time" => float 1417245472.8913
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8922
        "start_memory" => integer 2401744
        "stop_time" => float 1417245472.8924
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8924
        "start_memory" => integer 2403496
        "stop_time" => float 1417245472.8924
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8927
        "start_memory" => integer 2408944
        "stop_time" => float 1417245472.8927
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8931
        "start_memory" => integer 2474968
        "stop_time" => float 1417245472.8934
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8934
        "start_memory" => integer 2476368
        "stop_time" => float 1417245472.8934
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8969
        "start_memory" => integer 3145592
        "stop_time" => float 1417245472.8969
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8971
        "start_memory" => integer 3151800
        "stop_time" => float 1417245472.8971
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8976
        "start_memory" => integer 3185112
        "stop_time" => float 1417245472.8976
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8978
        "start_memory" => integer 3190296
        "stop_time" => float 1417245472.8978
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8988
        "start_memory" => integer 3352496
        "stop_time" => float 1417245472.8989
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8989
        "start_memory" => integer 3357952
        "stop_time" => float 1417245472.899
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8991
        "start_memory" => integer 3361224
        "stop_time" => float 1417245472.8992
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8992
        "start_memory" => integer 3366656
        "stop_time" => float 1417245472.8993
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8995
        "start_memory" => integer 3416904
        "stop_time" => float 1417245472.8996
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.8996
        "start_memory" => integer 3422120
        "stop_time" => float 1417245472.8997
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9005
        "start_memory" => integer 3520768
        "stop_time" => float 1417245472.9005
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9006
        "start_memory" => integer 3525944
        "stop_time" => float 1417245472.9007
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9027
        "start_memory" => integer 3611128
        "stop_time" => float 1417245472.9028
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9643
        "start_memory" => integer 3653872
        "stop_time" => float 1417245472.9643
        "stop_memory" => integer 3654432
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9645
        "start_memory" => integer 3659096
        "stop_time" => float 1417245472.9645
        "stop_memory" => integer 3659928
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9652
        "start_memory" => integer 3700528
        "stop_time" => float 1417245472.9652
        "stop_memory" => integer 3701080
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9653
        "start_memory" => integer 3705912
        "stop_time" => float 1417245472.9653
        "stop_memory" => integer 3706488
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9659
        "start_memory" => integer 3730184
        "stop_time" => float 1417245472.966
        "stop_memory" => integer 3730736
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.966
        "start_memory" => integer 3735440
        "stop_time" => float 1417245472.9661
        "stop_memory" => integer 3736016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9668
        "start_memory" => integer 3803168
        "stop_time" => float 1417245472.9668
        "stop_memory" => integer 3803752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9669
        "start_memory" => integer 3821744
        "stop_time" => float 1417245472.967
        "stop_memory" => integer 3822304
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.967
        "start_memory" => integer 3827168
        "stop_time" => float 1417245472.9671
        "stop_memory" => integer 3827752
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9676
        "start_memory" => integer 3892880
        "stop_time" => float 1417245472.9677
        "stop_memory" => integer 3893456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9679
        "start_memory" => integer 3912880
        "stop_time" => float 1417245472.9679
        "stop_memory" => integer 3913456
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9683
        "start_memory" => integer 3961528
        "stop_time" => float 1417245472.9684
        "stop_memory" => integer 3962104
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9686
        "start_memory" => integer 3972768
        "stop_time" => float 1417245472.9686
        "stop_memory" => integer 3973344
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9688
        "start_memory" => integer 3991352
        "stop_time" => float 1417245472.9689
        "stop_memory" => integer 3991928
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9691
        "start_memory" => integer 4001624
        "stop_time" => float 1417245472.9691
        "stop_memory" => integer 4002200
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9694
        "start_memory" => integer 4022328
        "stop_time" => float 1417245472.9694
        "stop_memory" => integer 4022904
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9696
        "start_memory" => integer 4043384
        "stop_time" => float 1417245472.9697
        "stop_memory" => integer 4043976
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9699
        "start_memory" => integer 4057216
        "stop_time" => float 1417245472.9699
        "stop_memory" => integer 4057784
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9701
        "start_memory" => integer 4070024
        "stop_time" => float 1417245472.9702
        "stop_memory" => integer 4070600
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9705
        "start_memory" => integer 4118896
        "stop_time" => float 1417245472.9705
        "stop_memory" => integer 4119456
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9708
        "start_memory" => integer 4157928
        "stop_time" => float 1417245472.9708
        "stop_memory" => integer 4158512
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9711
        "start_memory" => integer 4177912
        "stop_time" => float 1417245472.9711
        "stop_memory" => integer 4178488
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9714
        "start_memory" => integer 4209648
        "stop_time" => float 1417245472.9714
        "stop_memory" => integer 4210224
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9717
        "start_memory" => integer 4228936
        "stop_time" => float 1417245472.9717
        "stop_memory" => integer 4229480
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9718
        "start_memory" => integer 4234152
        "stop_time" => float 1417245472.9718
        "stop_memory" => integer 4234728
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.972
        "start_memory" => integer 4265568
        "stop_time" => float 1417245472.972
        "stop_memory" => integer 4266104
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9721
        "start_memory" => integer 4270768
        "stop_time" => float 1417245472.9722
        "stop_memory" => integer 4271336
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9743
        "start_memory" => integer 4412896
        "stop_time" => float 1417245472.9744
        "stop_memory" => integer 4413472
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.981
        "start_memory" => integer 4466272
        "stop_time" => float 1417245472.981
        "stop_memory" => integer 4466824
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9811
        "start_memory" => integer 4471656
        "stop_time" => float 1417245472.9812
        "stop_memory" => integer 4472232
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9848
        "start_memory" => integer 4497744
        "stop_time" => float 1417245472.9848
        "stop_memory" => integer 4498328
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9849
        "start_memory" => integer 4503280
        "stop_time" => float 1417245472.9849
        "stop_memory" => integer 4503856
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9887
        "start_memory" => integer 4529472
        "stop_time" => float 1417245472.9887
        "stop_memory" => integer 4530032
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9894
        "start_memory" => integer 4534888
        "stop_time" => float 1417245472.9895
        "stop_memory" => integer 4535968
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.99
        "start_memory" => integer 4624688
        "stop_time" => float 1417245472.99
        "stop_memory" => integer 4625288
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9947
        "start_memory" => integer 4632208
        "stop_time" => float 1417245472.9947
        "stop_memory" => integer 4632760
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245472.9949
        "start_memory" => integer 4637640
        "stop_time" => float 1417245472.9949
        "stop_memory" => integer 4638224
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0094
        "start_memory" => integer 4695088
        "stop_time" => float 1417245473.0094
        "stop_memory" => integer 4695648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0096
        "start_memory" => integer 4700568
        "stop_time" => float 1417245473.0096
        "stop_memory" => integer 4701152
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0098
        "start_memory" => integer 4724960
        "stop_time" => float 1417245473.0098
        "stop_memory" => integer 4725536
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0105
        "start_memory" => integer 4734616
        "stop_time" => float 1417245473.0105
        "stop_memory" => integer 4735176
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0105
        "start_memory" => integer 4740040
        "stop_time" => float 1417245473.0106
        "stop_memory" => integer 4740624
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0115
        "start_memory" => integer 4820128
        "stop_time" => float 1417245473.0115
        "stop_memory" => integer 4820688
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0116
        "start_memory" => integer 4825600
        "stop_time" => float 1417245473.0116
        "stop_memory" => integer 4826176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.016
        "start_memory" => integer 4851864
        "stop_time" => float 1417245473.0161
        "stop_memory" => integer 4852424
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0162
        "start_memory" => integer 4857288
        "stop_time" => float 1417245473.0162
        "stop_memory" => integer 4857872
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0169
        "start_memory" => integer 4879280
        "stop_time" => float 1417245473.0169
        "stop_memory" => integer 4879808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.017
        "start_memory" => integer 4884456
        "stop_time" => float 1417245473.017
        "stop_memory" => integer 4885032
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0184
        "start_memory" => integer 4895888
        "stop_time" => float 1417245473.0185
        "stop_memory" => integer 4896480
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0186
        "start_memory" => integer 4901368
        "stop_time" => float 1417245473.0186
        "stop_memory" => integer 4901944
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0217
        "start_memory" => integer 4946880
        "stop_time" => float 1417245473.0218
        "stop_memory" => integer 4947456
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0223
        "start_memory" => integer 4958592
        "stop_time" => float 1417245473.0223
        "stop_memory" => integer 4959136
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0224
        "start_memory" => integer 4963992
        "stop_time" => float 1417245473.0224
        "stop_memory" => integer 4964568
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0255
        "start_memory" => integer 4987064
        "stop_time" => float 1417245473.0255
        "stop_memory" => integer 4987632
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0272
        "start_memory" => integer 4993200
        "stop_time" => float 1417245473.0272
        "stop_memory" => integer 4993768
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0273
        "start_memory" => integer 4998616
        "stop_time" => float 1417245473.0273
        "stop_memory" => integer 4999200
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0294
        "start_memory" => integer 5132928
        "stop_time" => float 1417245473.0294
        "stop_memory" => integer 5133504
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0295
        "start_memory" => integer 5138456
        "stop_time" => float 1417245473.0295
        "stop_memory" => integer 5139048
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0299
        "start_memory" => integer 5153912
        "stop_time" => float 1417245473.03
        "stop_memory" => integer 5154480
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0301
        "start_memory" => integer 5159456
        "stop_time" => float 1417245473.0301
        "stop_memory" => integer 5160048
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0314
        "start_memory" => integer 5165968
        "stop_time" => float 1417245473.0314
        "stop_memory" => integer 5166520
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0315
        "start_memory" => integer 5171384
        "stop_time" => float 1417245473.0315
        "stop_memory" => integer 5171968
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0327
        "start_memory" => integer 5316576
        "stop_time" => float 1417245473.0327
        "stop_memory" => integer 5317152
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0328
        "start_memory" => integer 5322112
        "stop_time" => float 1417245473.0328
        "stop_memory" => integer 5322704
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.033
        "start_memory" => integer 5343384
        "stop_time" => float 1417245473.033
        "stop_memory" => integer 5343952
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0331
        "start_memory" => integer 5348840
        "stop_time" => float 1417245473.0331
        "stop_memory" => integer 5349416
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.034
        "start_memory" => integer 5411720
        "stop_time" => float 1417245473.034
        "stop_memory" => integer 5412280
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0341
        "start_memory" => integer 5417152
        "stop_time" => float 1417245473.0342
        "stop_memory" => integer 5417736
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0349
        "start_memory" => integer 5483240
        "stop_time" => float 1417245473.0349
        "stop_memory" => integer 5483800
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.035
        "start_memory" => integer 5488664
        "stop_time" => float 1417245473.035
        "stop_memory" => integer 5489248
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.036
        "start_memory" => integer 5531904
        "stop_time" => float 1417245473.036
        "stop_memory" => integer 5532480
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0361
        "start_memory" => integer 5537448
        "stop_time" => float 1417245473.0361
        "stop_memory" => integer 5538040
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.037
        "start_memory" => integer 5596880
        "stop_time" => float 1417245473.037
        "stop_memory" => integer 5597464
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0371
        "start_memory" => integer 5602528
        "stop_time" => float 1417245473.0371
        "stop_memory" => integer 5603128
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0373
        "start_memory" => integer 5622800
        "stop_time" => float 1417245473.0373
        "stop_memory" => integer 5623376
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0374
        "start_memory" => integer 5628440
        "stop_time" => float 1417245473.0374
        "stop_memory" => integer 5629040
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0383
        "start_memory" => integer 5693440
        "stop_time" => float 1417245473.0383
        "stop_memory" => integer 5694016
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0384
        "start_memory" => integer 5699080
        "stop_time" => float 1417245473.0384
        "stop_memory" => integer 5699680
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0393
        "start_memory" => integer 5748008
        "stop_time" => float 1417245473.0394
        "stop_memory" => integer 5748584
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0395
        "start_memory" => integer 5753640
        "stop_time" => float 1417245473.0395
        "stop_memory" => integer 5754240
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0403
        "start_memory" => integer 5795544
        "stop_time" => float 1417245473.0403
        "stop_memory" => integer 5796120
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0404
        "start_memory" => integer 5801184
        "stop_time" => float 1417245473.0404
        "stop_memory" => integer 5801784
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0416
        "start_memory" => integer 5914712
        "stop_time" => float 1417245473.0417
        "stop_memory" => integer 5915288
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0418
        "start_memory" => integer 5920352
        "stop_time" => float 1417245473.0418
        "stop_memory" => integer 5920952
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0438
        "start_memory" => integer 5969600
        "stop_time" => float 1417245473.0439
        "stop_memory" => integer 5970160
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.044
        "start_memory" => integer 5975128
        "stop_time" => float 1417245473.044
        "stop_memory" => integer 5975720
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0448
        "start_memory" => integer 5998848
        "stop_time" => float 1417245473.0449
        "stop_memory" => integer 5999368
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0449
        "start_memory" => integer 6004008
        "stop_time" => float 1417245473.045
        "stop_memory" => integer 6004576
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0461
        "start_memory" => integer 6119248
        "stop_time" => float 1417245473.0462
        "stop_memory" => integer 6119808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0463
        "start_memory" => integer 6124480
        "stop_time" => float 1417245473.0463
        "stop_memory" => integer 6125072
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0506
        "start_memory" => integer 6145392
        "stop_time" => float 1417245473.0507
        "stop_memory" => integer 6145928
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0508
        "start_memory" => integer 6150576
        "stop_time" => float 1417245473.0509
        "stop_memory" => integer 6151144
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0534
        "start_memory" => integer 6187824
        "stop_time" => float 1417245473.0535
        "stop_memory" => integer 6188368
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0535
        "start_memory" => integer 6193008
        "stop_time" => float 1417245473.0536
        "stop_memory" => integer 6193576
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0543
        "start_memory" => integer 6235968
        "stop_time" => float 1417245473.0543
        "stop_memory" => integer 6236512
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0544
        "start_memory" => integer 6241152
        "stop_time" => float 1417245473.0544
        "stop_memory" => integer 6241720
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0551
        "start_memory" => integer 6285912
        "stop_time" => float 1417245473.0551
        "stop_memory" => integer 6286456
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0552
        "start_memory" => integer 6291104
        "stop_time" => float 1417245473.0553
        "stop_memory" => integer 6292696
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0564
        "start_memory" => integer 6368200
        "stop_time" => float 1417245473.0565
        "stop_memory" => integer 6368744
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0566
        "start_memory" => integer 6373400
        "stop_time" => float 1417245473.0566
        "stop_memory" => integer 6373968
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0585
        "start_memory" => integer 6396152
        "stop_time" => float 1417245473.0585
        "stop_memory" => integer 6396712
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0586
        "start_memory" => integer 6401352
        "stop_time" => float 1417245473.0586
        "stop_memory" => integer 6401920
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0598
        "start_memory" => integer 6431064
        "stop_time" => float 1417245473.0599
        "stop_memory" => integer 6431624
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0599
        "start_memory" => integer 6436472
        "stop_time" => float 1417245473.06
        "stop_memory" => integer 6437048
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0606
        "start_memory" => integer 6457360
        "stop_time" => float 1417245473.0607
        "stop_memory" => integer 6457928
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0608
        "start_memory" => integer 6462864
        "stop_time" => float 1417245473.0608
        "stop_memory" => integer 6463448
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0616
        "start_memory" => integer 6478472
        "stop_time" => float 1417245473.0616
        "stop_memory" => integer 6479032
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0617
        "start_memory" => integer 6483968
        "stop_time" => float 1417245473.0618
        "stop_memory" => integer 6484552
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0624
        "start_memory" => integer 6499592
        "stop_time" => float 1417245473.0625
        "stop_memory" => integer 6500152
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0625
        "start_memory" => integer 6505088
        "stop_time" => float 1417245473.0626
        "stop_memory" => integer 6505672
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0632
        "start_memory" => integer 6520720
        "stop_time" => float 1417245473.0632
        "stop_memory" => integer 6521280
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0633
        "start_memory" => integer 6526216
        "stop_time" => float 1417245473.0634
        "stop_memory" => integer 6526800
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0639
        "start_memory" => integer 6541824
        "stop_time" => float 1417245473.064
        "stop_memory" => integer 6542384
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0641
        "start_memory" => integer 6547320
        "stop_time" => float 1417245473.0641
        "stop_memory" => integer 6547904
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0647
        "start_memory" => integer 6562928
        "stop_time" => float 1417245473.0648
        "stop_memory" => integer 6563488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0649
        "start_memory" => integer 6568424
        "stop_time" => float 1417245473.0649
        "stop_memory" => integer 6569008
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0655
        "start_memory" => integer 6584064
        "stop_time" => float 1417245473.0656
        "stop_memory" => integer 6584624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0656
        "start_memory" => integer 6589560
        "stop_time" => float 1417245473.0657
        "stop_memory" => integer 6590144
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0663
        "start_memory" => integer 6605168
        "stop_time" => float 1417245473.0663
        "stop_memory" => integer 6605728
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0664
        "start_memory" => integer 6610664
        "stop_time" => float 1417245473.0665
        "stop_memory" => integer 6611248
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.067
        "start_memory" => integer 6626384
        "stop_time" => float 1417245473.0671
        "stop_memory" => integer 6626944
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0672
        "start_memory" => integer 6631880
        "stop_time" => float 1417245473.0673
        "stop_memory" => integer 6632464
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0679
        "start_memory" => integer 6647496
        "stop_time" => float 1417245473.068
        "stop_memory" => integer 6648056
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.068
        "start_memory" => integer 6652992
        "stop_time" => float 1417245473.0681
        "stop_memory" => integer 6653576
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0686
        "start_memory" => integer 6668616
        "stop_time" => float 1417245473.0687
        "stop_memory" => integer 6669176
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0688
        "start_memory" => integer 6674112
        "stop_time" => float 1417245473.0688
        "stop_memory" => integer 6674696
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0694
        "start_memory" => integer 6689704
        "stop_time" => float 1417245473.0695
        "stop_memory" => integer 6690264
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0696
        "start_memory" => integer 6695200
        "stop_time" => float 1417245473.0696
        "stop_memory" => integer 6695784
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0702
        "start_memory" => integer 6710808
        "stop_time" => float 1417245473.0703
        "stop_memory" => integer 6711368
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0704
        "start_memory" => integer 6716304
        "stop_time" => float 1417245473.0704
        "stop_memory" => integer 6716888
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.071
        "start_memory" => integer 6731912
        "stop_time" => float 1417245473.071
        "stop_memory" => integer 6732472
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0711
        "start_memory" => integer 6737408
        "stop_time" => float 1417245473.0712
        "stop_memory" => integer 6737992
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0717
        "start_memory" => integer 6753056
        "stop_time" => float 1417245473.0718
        "stop_memory" => integer 6753616
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0718
        "start_memory" => integer 6758552
        "stop_time" => float 1417245473.0719
        "stop_memory" => integer 6759136
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0725
        "start_memory" => integer 6774192
        "stop_time" => float 1417245473.0725
        "stop_memory" => integer 6774752
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0726
        "start_memory" => integer 6779688
        "stop_time" => float 1417245473.0726
        "stop_memory" => integer 6780272
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0733
        "start_memory" => integer 6795448
        "stop_time" => float 1417245473.0733
        "stop_memory" => integer 6796008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0734
        "start_memory" => integer 6800944
        "stop_time" => float 1417245473.0734
        "stop_memory" => integer 6801528
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.074
        "start_memory" => integer 6816584
        "stop_time" => float 1417245473.0741
        "stop_memory" => integer 6817144
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0741
        "start_memory" => integer 6822080
        "stop_time" => float 1417245473.0742
        "stop_memory" => integer 6822664
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0747
        "start_memory" => integer 6837720
        "stop_time" => float 1417245473.0748
        "stop_memory" => integer 6838280
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0749
        "start_memory" => integer 6843216
        "stop_time" => float 1417245473.0749
        "stop_memory" => integer 6843800
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0755
        "start_memory" => integer 6858848
        "stop_time" => float 1417245473.0755
        "stop_memory" => integer 6859408
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0756
        "start_memory" => integer 6864344
        "stop_time" => float 1417245473.0757
        "stop_memory" => integer 6864928
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0762
        "start_memory" => integer 6879952
        "stop_time" => float 1417245473.0763
        "stop_memory" => integer 6880512
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0764
        "start_memory" => integer 6885448
        "stop_time" => float 1417245473.0764
        "stop_memory" => integer 6886032
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0771
        "start_memory" => integer 6901056
        "stop_time" => float 1417245473.0771
        "stop_memory" => integer 6901616
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0772
        "start_memory" => integer 6906552
        "stop_time" => float 1417245473.0772
        "stop_memory" => integer 6907136
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0778
        "start_memory" => integer 6922192
        "stop_time" => float 1417245473.0779
        "stop_memory" => integer 6922752
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.078
        "start_memory" => integer 6927688
        "stop_time" => float 1417245473.078
        "stop_memory" => integer 6928272
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0787
        "start_memory" => integer 6943312
        "stop_time" => float 1417245473.0787
        "stop_memory" => integer 6943872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0788
        "start_memory" => integer 6948808
        "stop_time" => float 1417245473.0788
        "stop_memory" => integer 6949392
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0802
        "start_memory" => integer 6964656
        "stop_time" => float 1417245473.0802
        "stop_memory" => integer 6965216
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0803
        "start_memory" => integer 6970128
        "stop_time" => float 1417245473.0804
        "stop_memory" => integer 6970696
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0828
        "start_memory" => integer 7008720
        "stop_time" => float 1417245473.0828
        "stop_memory" => integer 7009272
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0829
        "start_memory" => integer 7013944
        "stop_time" => float 1417245473.0829
        "stop_memory" => integer 7014520
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.084
        "start_memory" => integer 7145584
        "stop_time" => float 1417245473.0841
        "stop_memory" => integer 7146136
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0842
        "start_memory" => integer 7150816
        "stop_time" => float 1417245473.0842
        "stop_memory" => integer 7151392
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0855
        "start_memory" => integer 7320576
        "stop_time" => float 1417245473.0856
        "stop_memory" => integer 7321128
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0857
        "start_memory" => integer 7325816
        "stop_time" => float 1417245473.0857
        "stop_memory" => integer 7326376
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0878
        "start_memory" => integer 7382040
        "stop_time" => float 1417245473.0878
        "stop_memory" => integer 7382616
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0879
        "start_memory" => integer 7387528
        "stop_time" => float 1417245473.0879
        "stop_memory" => integer 7388096
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0885
        "start_memory" => integer 7428128
        "stop_time" => float 1417245473.0886
        "stop_memory" => integer 7428704
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0887
        "start_memory" => integer 7433656
        "stop_time" => float 1417245473.0887
        "stop_memory" => integer 7434248
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0898
        "start_memory" => integer 7460192
        "stop_time" => float 1417245473.0898
        "stop_memory" => integer 7460760
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0899
        "start_memory" => integer 7465632
        "stop_time" => float 1417245473.0899
        "stop_memory" => integer 7466208
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0916
        "start_memory" => integer 7492264
        "stop_time" => float 1417245473.0917
        "stop_memory" => integer 7492840
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0947
        "start_memory" => integer 7503744
        "stop_time" => float 1417245473.0948
        "stop_memory" => integer 7504304
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.095
        "start_memory" => integer 7514168
        "stop_time" => float 1417245473.0951
        "stop_memory" => integer 7514736
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0963
        "start_memory" => integer 7525336
        "stop_time" => float 1417245473.0964
        "stop_memory" => integer 7525888
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0965
        "start_memory" => integer 7530616
        "stop_time" => float 1417245473.0965
        "stop_memory" => integer 7531192
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.097
        "start_memory" => integer 7536656
        "stop_time" => float 1417245473.0971
        "stop_memory" => integer 7537208
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0971
        "start_memory" => integer 7541936
        "stop_time" => float 1417245473.0972
        "stop_memory" => integer 7542512
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0976
        "start_memory" => integer 7547960
        "stop_time" => float 1417245473.0977
        "stop_memory" => integer 7548512
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0977
        "start_memory" => integer 7553264
        "stop_time" => float 1417245473.0978
        "stop_memory" => integer 7553840
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0987
        "start_memory" => integer 7565848
        "stop_time" => float 1417245473.0987
        "stop_memory" => integer 7566384
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0988
        "start_memory" => integer 7571048
        "stop_time" => float 1417245473.0989
        "stop_memory" => integer 7571616
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0995
        "start_memory" => integer 7574664
        "stop_time" => float 1417245473.0996
        "stop_memory" => integer 7575240
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0997
        "start_memory" => integer 7584512
        "stop_time" => float 1417245473.0997
        "stop_memory" => integer 7585048
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.0998
        "start_memory" => integer 7589696
        "stop_time" => float 1417245473.0998
        "stop_memory" => integer 7590264
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1018
        "start_memory" => integer 7965664
        "stop_time" => float 1417245473.1018
        "stop_memory" => integer 7966240
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1026
        "start_memory" => integer 8044808
        "stop_time" => float 1417245473.1026
        "stop_memory" => integer 8045392
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1032
        "start_memory" => integer 8090616
        "stop_time" => float 1417245473.1032
        "stop_memory" => integer 8091176
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1033
        "start_memory" => integer 8096040
        "stop_time" => float 1417245473.1033
        "stop_memory" => integer 8096624
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1038
        "start_memory" => integer 8105584
        "stop_time" => float 1417245473.1038
        "stop_memory" => integer 8106128
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1043
        "start_memory" => integer 8137592
        "stop_time" => float 1417245473.1043
        "stop_memory" => integer 8138152
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1048
        "start_memory" => integer 8172576
        "stop_time" => float 1417245473.1048
        "stop_memory" => integer 8173152
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1053
        "start_memory" => integer 8205248
        "stop_time" => float 1417245473.1053
        "stop_memory" => integer 8205784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1054
        "start_memory" => integer 8210440
        "stop_time" => float 1417245473.1055
        "stop_memory" => integer 8211008
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1074
        "start_memory" => integer 8252816
        "stop_time" => float 1417245473.1074
        "stop_memory" => integer 8253408
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1075
        "start_memory" => integer 8258592
        "stop_time" => float 1417245473.1076
        "stop_memory" => integer 8259184
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1098
        "start_memory" => integer 8303280
        "stop_time" => float 1417245473.1099
        "stop_memory" => integer 8303832
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.11
        "start_memory" => integer 8308768
        "stop_time" => float 1417245473.11
        "stop_memory" => integer 8309352
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1136
        "start_memory" => integer 8411040
        "stop_time" => float 1417245473.1136
        "stop_memory" => integer 8411568
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1137
        "start_memory" => integer 8416224
        "stop_time" => float 1417245473.1137
        "stop_memory" => integer 8416792
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1143
        "start_memory" => integer 8431720
        "stop_time" => float 1417245473.1143
        "stop_memory" => integer 8432272
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1144
        "start_memory" => integer 8436920
        "stop_time" => float 1417245473.1145
        "stop_memory" => integer 8437488
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1155
        "start_memory" => integer 8503920
        "stop_time" => float 1417245473.1155
        "stop_memory" => integer 8504480
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1156
        "start_memory" => integer 8509336
        "stop_time" => float 1417245473.1157
        "stop_memory" => integer 8509912
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1162
        "start_memory" => integer 8533352
        "stop_time" => float 1417245473.1163
        "stop_memory" => integer 8533960
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1164
        "start_memory" => integer 8538880
        "stop_time" => float 1417245473.1164
        "stop_memory" => integer 8539472
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1175
        "start_memory" => integer 8610480
        "stop_time" => float 1417245473.1175
        "stop_memory" => integer 8611016
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1176
        "start_memory" => integer 8615888
        "stop_time" => float 1417245473.1176
        "stop_memory" => integer 8616440
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1182
        "start_memory" => integer 8644144
        "stop_time" => float 1417245473.1182
        "stop_memory" => integer 8644680
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1183
        "start_memory" => integer 8649336
        "stop_time" => float 1417245473.1183
        "stop_memory" => integer 8649904
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1194
        "start_memory" => integer 8771128
        "stop_time" => float 1417245473.1194
        "stop_memory" => integer 8771672
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1195
        "start_memory" => integer 8776344
        "stop_time" => float 1417245473.1195
        "stop_memory" => integer 8776912
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1237
        "start_memory" => integer 8808296
        "stop_time" => float 1417245473.1237
        "stop_memory" => integer 8808840
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1238
        "start_memory" => integer 8813488
        "stop_time" => float 1417245473.1239
        "stop_memory" => integer 8814056
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1247
        "start_memory" => integer 8914344
        "stop_time" => float 1417245473.1247
        "stop_memory" => integer 8914904
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1248
        "start_memory" => integer 8919616
        "stop_time" => float 1417245473.1248
        "stop_memory" => integer 8920192
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1257
        "start_memory" => integer 9027936
        "stop_time" => float 1417245473.1257
        "stop_memory" => integer 9028504
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1258
        "start_memory" => integer 9033424
        "stop_time" => float 1417245473.1259
        "stop_memory" => integer 9034008
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1267
        "start_memory" => integer 9055192
        "stop_time" => float 1417245473.1267
        "stop_memory" => integer 9055768
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.127
        "start_memory" => integer 9020248
        "stop_time" => float 1417245473.127
        "stop_memory" => integer 9022184
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1275
        "start_memory" => integer 9092904
        "stop_time" => float 1417245473.1276
        "stop_memory" => integer 9094632
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1417245473.1276
        "start_memory" => integer 9094392
        "stop_time" => float 1417245473.1277
        "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'],
	);
}