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(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1397827199.1635
        "start_memory" => integer 1984664
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1636
        "start_memory" => integer 1987008
        "stop_time" => float 1397827199.1638
        "stop_memory" => integer 1987600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1639
        "start_memory" => integer 1992552
        "stop_time" => float 1397827199.1639
        "stop_memory" => integer 1993144
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1646
        "start_memory" => integer 2118664
        "stop_time" => float 1397827199.1647
        "stop_memory" => integer 2119216
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1648
        "start_memory" => integer 2124136
        "stop_time" => float 1397827199.1648
        "stop_memory" => integer 2124720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.165
        "start_memory" => integer 2135808
        "stop_time" => float 1397827199.165
        "stop_memory" => integer 2136352
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1651
        "start_memory" => integer 2141064
        "stop_time" => float 1397827199.1651
        "stop_memory" => integer 2141640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1655
        "start_memory" => integer 2150920
        "stop_time" => float 1397827199.1657
        "stop_memory" => integer 2151456
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1658
        "start_memory" => integer 2156128
        "stop_time" => float 1397827199.1659
        "stop_memory" => integer 2156760
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1673
        "start_memory" => integer 2317688
        "stop_time" => float 1397827199.1675
        "stop_memory" => integer 2318248
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1677
        "start_memory" => integer 2323096
        "stop_time" => float 1397827199.1678
        "stop_memory" => integer 2323672
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.168
        "start_memory" => integer 2337128
        "stop_time" => float 1397827199.1682
        "stop_memory" => integer 2337672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1683
        "start_memory" => integer 2342320
        "stop_time" => float 1397827199.1684
        "stop_memory" => integer 2342888
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1688
        "start_memory" => integer 2397720
        "stop_time" => float 1397827199.1689
        "stop_memory" => integer 2398312
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1689
        "start_memory" => integer 2399472
        "stop_time" => float 1397827199.169
        "stop_memory" => integer 2400048
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1692
        "start_memory" => integer 2404920
        "stop_time" => float 1397827199.1693
        "stop_memory" => integer 2405496
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.17
        "start_memory" => integer 2470936
        "stop_time" => float 1397827199.1701
        "stop_memory" => integer 2471552
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1701
        "start_memory" => integer 2472336
        "stop_time" => float 1397827199.1702
        "stop_memory" => integer 2472912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.174
        "start_memory" => integer 3141592
        "stop_time" => float 1397827199.1741
        "stop_memory" => integer 3142120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1742
        "start_memory" => integer 3147816
        "stop_time" => float 1397827199.1743
        "stop_memory" => integer 3148384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1747
        "start_memory" => integer 3181104
        "stop_time" => float 1397827199.1747
        "stop_memory" => integer 3181648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1748
        "start_memory" => integer 3186288
        "stop_time" => float 1397827199.1749
        "stop_memory" => integer 3186856
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1757
        "start_memory" => integer 3349728
        "stop_time" => float 1397827199.1757
        "stop_memory" => integer 3350304
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1759
        "start_memory" => integer 3355184
        "stop_time" => float 1397827199.1759
        "stop_memory" => integer 3355768
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.176
        "start_memory" => integer 3358456
        "stop_time" => float 1397827199.1761
        "stop_memory" => integer 3359016
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1762
        "start_memory" => integer 3363888
        "stop_time" => float 1397827199.1762
        "stop_memory" => integer 3364472
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1767
        "start_memory" => integer 3414128
        "stop_time" => float 1397827199.1768
        "stop_memory" => integer 3414672
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1769
        "start_memory" => integer 3419344
        "stop_time" => float 1397827199.1769
        "stop_memory" => integer 3419920
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1776
        "start_memory" => integer 3517960
        "stop_time" => float 1397827199.1777
        "stop_memory" => integer 3518496
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1779
        "start_memory" => integer 3523136
        "stop_time" => float 1397827199.1784
        "stop_memory" => integer 3523704
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.1817
        "start_memory" => integer 3610296
        "stop_time" => float 1397827199.1818
        "stop_memory" => integer 3610888
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2817
        "start_memory" => integer 3653040
        "stop_time" => float 1397827199.2817
        "stop_memory" => integer 3653608
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2818
        "start_memory" => integer 3658272
        "stop_time" => float 1397827199.2819
        "stop_memory" => integer 3659104
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.283
        "start_memory" => integer 3699728
        "stop_time" => float 1397827199.2831
        "stop_memory" => integer 3700280
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2831
        "start_memory" => integer 3705112
        "stop_time" => float 1397827199.2832
        "stop_memory" => integer 3705688
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2845
        "start_memory" => integer 3729384
        "stop_time" => float 1397827199.2846
        "stop_memory" => integer 3729936
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2847
        "start_memory" => integer 3734616
        "stop_time" => float 1397827199.2848
        "stop_memory" => integer 3735192
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2865
        "start_memory" => integer 3802392
        "stop_time" => float 1397827199.2866
        "stop_memory" => integer 3802976
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2869
        "start_memory" => integer 3820968
        "stop_time" => float 1397827199.2869
        "stop_memory" => integer 3821528
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2871
        "start_memory" => integer 3826392
        "stop_time" => float 1397827199.2872
        "stop_memory" => integer 3826976
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2879
        "start_memory" => integer 3892104
        "stop_time" => float 1397827199.288
        "stop_memory" => integer 3892680
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2882
        "start_memory" => integer 3912104
        "stop_time" => float 1397827199.2883
        "stop_memory" => integer 3912680
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2888
        "start_memory" => integer 3960752
        "stop_time" => float 1397827199.2889
        "stop_memory" => integer 3961328
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2891
        "start_memory" => integer 3971992
        "stop_time" => float 1397827199.2891
        "stop_memory" => integer 3972568
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2896
        "start_memory" => integer 3990576
        "stop_time" => float 1397827199.2897
        "stop_memory" => integer 3991152
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.29
        "start_memory" => integer 4000848
        "stop_time" => float 1397827199.29
        "stop_memory" => integer 4001424
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2906
        "start_memory" => integer 4021528
        "stop_time" => float 1397827199.2906
        "stop_memory" => integer 4022104
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2911
        "start_memory" => integer 4042608
        "stop_time" => float 1397827199.2912
        "stop_memory" => integer 4043200
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2918
        "start_memory" => integer 4056424
        "stop_time" => float 1397827199.2918
        "stop_memory" => integer 4056992
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2922
        "start_memory" => integer 4069208
        "stop_time" => float 1397827199.2922
        "stop_memory" => integer 4069784
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2928
        "start_memory" => integer 4118104
        "stop_time" => float 1397827199.2928
        "stop_memory" => integer 4118664
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2936
        "start_memory" => integer 4157136
        "stop_time" => float 1397827199.2936
        "stop_memory" => integer 4157720
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2941
        "start_memory" => integer 4177120
        "stop_time" => float 1397827199.2944
        "stop_memory" => integer 4177696
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.295
        "start_memory" => integer 4208856
        "stop_time" => float 1397827199.2951
        "stop_memory" => integer 4209432
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2957
        "start_memory" => integer 4228144
        "stop_time" => float 1397827199.2957
        "stop_memory" => integer 4228688
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2958
        "start_memory" => integer 4233360
        "stop_time" => float 1397827199.2958
        "stop_memory" => integer 4233936
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2962
        "start_memory" => integer 4264800
        "stop_time" => float 1397827199.2963
        "stop_memory" => integer 4265336
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.2965
        "start_memory" => integer 4270000
        "stop_time" => float 1397827199.2966
        "stop_memory" => integer 4270568
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3001
        "start_memory" => integer 4412136
        "stop_time" => float 1397827199.3002
        "stop_memory" => integer 4412712
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3098
        "start_memory" => integer 4465512
        "stop_time" => float 1397827199.3099
        "stop_memory" => integer 4466064
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3101
        "start_memory" => integer 4470896
        "stop_time" => float 1397827199.3101
        "stop_memory" => integer 4471472
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3156
        "start_memory" => integer 4496984
        "stop_time" => float 1397827199.3157
        "stop_memory" => integer 4497568
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3159
        "start_memory" => integer 4502504
        "stop_time" => float 1397827199.316
        "stop_memory" => integer 4503080
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3215
        "start_memory" => integer 4528728
        "stop_time" => float 1397827199.3215
        "stop_memory" => integer 4529288
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3218
        "start_memory" => integer 4534144
        "stop_time" => float 1397827199.3219
        "stop_memory" => integer 4535224
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3226
        "start_memory" => integer 4624008
        "stop_time" => float 1397827199.3227
        "stop_memory" => integer 4624608
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3281
        "start_memory" => integer 4631512
        "stop_time" => float 1397827199.3282
        "stop_memory" => integer 4632064
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3284
        "start_memory" => integer 4636944
        "stop_time" => float 1397827199.3285
        "stop_memory" => integer 4637528
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3459
        "start_memory" => integer 4694400
        "stop_time" => float 1397827199.3461
        "stop_memory" => integer 4694960
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3462
        "start_memory" => integer 4699880
        "stop_time" => float 1397827199.3463
        "stop_memory" => integer 4700464
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3466
        "start_memory" => integer 4724304
        "stop_time" => float 1397827199.3466
        "stop_memory" => integer 4724880
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3476
        "start_memory" => integer 4733992
        "stop_time" => float 1397827199.3477
        "stop_memory" => integer 4734552
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3478
        "start_memory" => integer 4739416
        "stop_time" => float 1397827199.3479
        "stop_memory" => integer 4740000
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3496
        "start_memory" => integer 4819464
        "stop_time" => float 1397827199.3496
        "stop_memory" => integer 4820024
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3498
        "start_memory" => integer 4824904
        "stop_time" => float 1397827199.3498
        "stop_memory" => integer 4825488
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3574
        "start_memory" => integer 4851192
        "stop_time" => float 1397827199.3575
        "stop_memory" => integer 4851752
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3577
        "start_memory" => integer 4856616
        "stop_time" => float 1397827199.3577
        "stop_memory" => integer 4857200
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3589
        "start_memory" => integer 4878544
        "stop_time" => float 1397827199.359
        "stop_memory" => integer 4879072
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3591
        "start_memory" => integer 4883720
        "stop_time" => float 1397827199.3591
        "stop_memory" => integer 4884288
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3614
        "start_memory" => integer 4895144
        "stop_time" => float 1397827199.3615
        "stop_memory" => integer 4895736
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3616
        "start_memory" => integer 4900624
        "stop_time" => float 1397827199.3617
        "stop_memory" => integer 4901200
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3671
        "start_memory" => integer 4946136
        "stop_time" => float 1397827199.3672
        "stop_memory" => integer 4946712
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3681
        "start_memory" => integer 4957848
        "stop_time" => float 1397827199.3681
        "stop_memory" => integer 4958392
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3683
        "start_memory" => integer 4964288
        "stop_time" => float 1397827199.3684
        "stop_memory" => integer 4964864
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3732
        "start_memory" => integer 4986320
        "stop_time" => float 1397827199.3732
        "stop_memory" => integer 4986904
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3759
        "start_memory" => integer 4992472
        "stop_time" => float 1397827199.376
        "stop_memory" => integer 4993040
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3761
        "start_memory" => integer 4997888
        "stop_time" => float 1397827199.3762
        "stop_memory" => integer 4998472
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3793
        "start_memory" => integer 5132224
        "stop_time" => float 1397827199.3794
        "stop_memory" => integer 5132800
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3796
        "start_memory" => integer 5137752
        "stop_time" => float 1397827199.3796
        "stop_memory" => integer 5138344
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3804
        "start_memory" => integer 5153200
        "stop_time" => float 1397827199.3804
        "stop_memory" => integer 5153768
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3805
        "start_memory" => integer 5158728
        "stop_time" => float 1397827199.3806
        "stop_memory" => integer 5159320
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3826
        "start_memory" => integer 5165264
        "stop_time" => float 1397827199.3827
        "stop_memory" => integer 5165816
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3828
        "start_memory" => integer 5170688
        "stop_time" => float 1397827199.3829
        "stop_memory" => integer 5171264
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3844
        "start_memory" => integer 5315856
        "stop_time" => float 1397827199.3844
        "stop_memory" => integer 5316432
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3845
        "start_memory" => integer 5321392
        "stop_time" => float 1397827199.3846
        "stop_memory" => integer 5321984
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3848
        "start_memory" => integer 5342664
        "stop_time" => float 1397827199.3848
        "stop_memory" => integer 5343232
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.385
        "start_memory" => integer 5348120
        "stop_time" => float 1397827199.385
        "stop_memory" => integer 5348696
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3864
        "start_memory" => integer 5411016
        "stop_time" => float 1397827199.3864
        "stop_memory" => integer 5411576
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3865
        "start_memory" => integer 5416448
        "stop_time" => float 1397827199.3866
        "stop_memory" => integer 5417032
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3877
        "start_memory" => integer 5482536
        "stop_time" => float 1397827199.3877
        "stop_memory" => integer 5483096
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3878
        "start_memory" => integer 5487960
        "stop_time" => float 1397827199.3878
        "stop_memory" => integer 5488544
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3891
        "start_memory" => integer 5531200
        "stop_time" => float 1397827199.3891
        "stop_memory" => integer 5531776
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3892
        "start_memory" => integer 5536744
        "stop_time" => float 1397827199.3893
        "stop_memory" => integer 5537336
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3907
        "start_memory" => integer 5596176
        "stop_time" => float 1397827199.3908
        "stop_memory" => integer 5596760
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3909
        "start_memory" => integer 5601824
        "stop_time" => float 1397827199.391
        "stop_memory" => integer 5602424
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3911
        "start_memory" => integer 5622096
        "stop_time" => float 1397827199.3912
        "stop_memory" => integer 5622672
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3913
        "start_memory" => integer 5627736
        "stop_time" => float 1397827199.3913
        "stop_memory" => integer 5628336
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3927
        "start_memory" => integer 5692832
        "stop_time" => float 1397827199.3927
        "stop_memory" => integer 5693408
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3928
        "start_memory" => integer 5698472
        "stop_time" => float 1397827199.3929
        "stop_memory" => integer 5699072
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3941
        "start_memory" => integer 5747400
        "stop_time" => float 1397827199.3942
        "stop_memory" => integer 5747976
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3943
        "start_memory" => integer 5753032
        "stop_time" => float 1397827199.3945
        "stop_memory" => integer 5753632
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3958
        "start_memory" => integer 5794936
        "stop_time" => float 1397827199.3959
        "stop_memory" => integer 5795512
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.396
        "start_memory" => integer 5800576
        "stop_time" => float 1397827199.3961
        "stop_memory" => integer 5801176
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3977
        "start_memory" => integer 5914104
        "stop_time" => float 1397827199.3977
        "stop_memory" => integer 5914680
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.3979
        "start_memory" => integer 5919744
        "stop_time" => float 1397827199.3979
        "stop_memory" => integer 5920344
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4005
        "start_memory" => integer 5968992
        "stop_time" => float 1397827199.4006
        "stop_memory" => integer 5969552
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4008
        "start_memory" => integer 5974520
        "stop_time" => float 1397827199.4009
        "stop_memory" => integer 5975112
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4022
        "start_memory" => integer 5998240
        "stop_time" => float 1397827199.4023
        "stop_memory" => integer 5998760
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4025
        "start_memory" => integer 6003400
        "stop_time" => float 1397827199.4025
        "stop_memory" => integer 6003968
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4034
        "start_memory" => integer 6121616
        "stop_time" => float 1397827199.4035
        "stop_memory" => integer 6122160
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4042
        "start_memory" => integer 6123216
        "stop_time" => float 1397827199.4042
        "stop_memory" => integer 6123784
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4044
        "start_memory" => integer 6128456
        "stop_time" => float 1397827199.4045
        "stop_memory" => integer 6129040
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.411
        "start_memory" => integer 6149360
        "stop_time" => float 1397827199.4112
        "stop_memory" => integer 6149896
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4114
        "start_memory" => integer 6154544
        "stop_time" => float 1397827199.4115
        "stop_memory" => integer 6155112
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4159
        "start_memory" => integer 6192616
        "stop_time" => float 1397827199.4161
        "stop_memory" => integer 6193160
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4163
        "start_memory" => integer 6197800
        "stop_time" => float 1397827199.4164
        "stop_memory" => integer 6198368
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4177
        "start_memory" => integer 6240824
        "stop_time" => float 1397827199.4177
        "stop_memory" => integer 6241368
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4178
        "start_memory" => integer 6246016
        "stop_time" => float 1397827199.4179
        "stop_memory" => integer 6246584
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4188
        "start_memory" => integer 6290784
        "stop_time" => float 1397827199.4189
        "stop_memory" => integer 6292352
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4191
        "start_memory" => integer 6296992
        "stop_time" => float 1397827199.4192
        "stop_memory" => integer 6297560
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.421
        "start_memory" => integer 6373064
        "stop_time" => float 1397827199.4211
        "stop_memory" => integer 6373608
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4212
        "start_memory" => integer 6378272
        "stop_time" => float 1397827199.4212
        "stop_memory" => integer 6378840
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4252
        "start_memory" => integer 6401032
        "stop_time" => float 1397827199.4254
        "stop_memory" => integer 6401576
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4257
        "start_memory" => integer 6406216
        "stop_time" => float 1397827199.4258
        "stop_memory" => integer 6406784
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.429
        "start_memory" => integer 6436264
        "stop_time" => float 1397827199.4291
        "stop_memory" => integer 6436824
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4293
        "start_memory" => integer 6441672
        "stop_time" => float 1397827199.4294
        "stop_memory" => integer 6442248
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4308
        "start_memory" => integer 6462552
        "stop_time" => float 1397827199.4309
        "stop_memory" => integer 6463120
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4311
        "start_memory" => integer 6468056
        "stop_time" => float 1397827199.4312
        "stop_memory" => integer 6468640
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4324
        "start_memory" => integer 6483664
        "stop_time" => float 1397827199.4325
        "stop_memory" => integer 6484224
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4327
        "start_memory" => integer 6489160
        "stop_time" => float 1397827199.4329
        "stop_memory" => integer 6489744
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4341
        "start_memory" => integer 6504792
        "stop_time" => float 1397827199.4342
        "stop_memory" => integer 6505352
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4344
        "start_memory" => integer 6510288
        "stop_time" => float 1397827199.4345
        "stop_memory" => integer 6510872
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4357
        "start_memory" => integer 6525920
        "stop_time" => float 1397827199.4358
        "stop_memory" => integer 6526480
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.436
        "start_memory" => integer 6531416
        "stop_time" => float 1397827199.4361
        "stop_memory" => integer 6532000
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4374
        "start_memory" => integer 6547024
        "stop_time" => float 1397827199.4375
        "stop_memory" => integer 6547584
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4376
        "start_memory" => integer 6552520
        "stop_time" => float 1397827199.4377
        "stop_memory" => integer 6553104
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4388
        "start_memory" => integer 6568128
        "stop_time" => float 1397827199.4389
        "stop_memory" => integer 6568688
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4391
        "start_memory" => integer 6573624
        "stop_time" => float 1397827199.4392
        "stop_memory" => integer 6574208
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4404
        "start_memory" => integer 6589264
        "stop_time" => float 1397827199.4405
        "stop_memory" => integer 6589824
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4406
        "start_memory" => integer 6594760
        "stop_time" => float 1397827199.4407
        "stop_memory" => integer 6595344
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4418
        "start_memory" => integer 6610368
        "stop_time" => float 1397827199.4418
        "stop_memory" => integer 6610928
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.442
        "start_memory" => integer 6615864
        "stop_time" => float 1397827199.4421
        "stop_memory" => integer 6616448
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4432
        "start_memory" => integer 6631584
        "stop_time" => float 1397827199.4434
        "stop_memory" => integer 6632144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4435
        "start_memory" => integer 6637080
        "stop_time" => float 1397827199.4436
        "stop_memory" => integer 6637664
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4446
        "start_memory" => integer 6652696
        "stop_time" => float 1397827199.4447
        "stop_memory" => integer 6653256
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4449
        "start_memory" => integer 6658192
        "stop_time" => float 1397827199.4449
        "stop_memory" => integer 6658776
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.446
        "start_memory" => integer 6673816
        "stop_time" => float 1397827199.4461
        "stop_memory" => integer 6674376
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4462
        "start_memory" => integer 6679312
        "stop_time" => float 1397827199.4463
        "stop_memory" => integer 6679896
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4472
        "start_memory" => integer 6694904
        "stop_time" => float 1397827199.4473
        "stop_memory" => integer 6695464
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4475
        "start_memory" => integer 6700400
        "stop_time" => float 1397827199.4475
        "stop_memory" => integer 6700984
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4486
        "start_memory" => integer 6716008
        "stop_time" => float 1397827199.4487
        "stop_memory" => integer 6716568
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4488
        "start_memory" => integer 6721504
        "stop_time" => float 1397827199.4489
        "stop_memory" => integer 6722088
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.45
        "start_memory" => integer 6737160
        "stop_time" => float 1397827199.4501
        "stop_memory" => integer 6737720
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4502
        "start_memory" => integer 6742656
        "stop_time" => float 1397827199.4503
        "stop_memory" => integer 6743240
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4513
        "start_memory" => integer 6758296
        "stop_time" => float 1397827199.4517
        "stop_memory" => integer 6758856
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4518
        "start_memory" => integer 6763792
        "stop_time" => float 1397827199.452
        "stop_memory" => integer 6764376
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4529
        "start_memory" => integer 6779432
        "stop_time" => float 1397827199.453
        "stop_memory" => integer 6779992
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4532
        "start_memory" => integer 6784928
        "stop_time" => float 1397827199.4532
        "stop_memory" => integer 6785512
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4543
        "start_memory" => integer 6800688
        "stop_time" => float 1397827199.4544
        "stop_memory" => integer 6801248
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4546
        "start_memory" => integer 6806184
        "stop_time" => float 1397827199.4547
        "stop_memory" => integer 6806768
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4558
        "start_memory" => integer 6821824
        "stop_time" => float 1397827199.4558
        "stop_memory" => integer 6822384
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.456
        "start_memory" => integer 6827320
        "stop_time" => float 1397827199.4561
        "stop_memory" => integer 6827904
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4571
        "start_memory" => integer 6842960
        "stop_time" => float 1397827199.4571
        "stop_memory" => integer 6843520
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4573
        "start_memory" => integer 6848456
        "stop_time" => float 1397827199.4574
        "stop_memory" => integer 6849040
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4584
        "start_memory" => integer 6864088
        "stop_time" => float 1397827199.4585
        "stop_memory" => integer 6864648
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4586
        "start_memory" => integer 6869584
        "stop_time" => float 1397827199.4587
        "stop_memory" => integer 6870168
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4597
        "start_memory" => integer 6885192
        "stop_time" => float 1397827199.4598
        "stop_memory" => integer 6885752
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4599
        "start_memory" => integer 6890688
        "stop_time" => float 1397827199.46
        "stop_memory" => integer 6891272
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.461
        "start_memory" => integer 6906296
        "stop_time" => float 1397827199.4611
        "stop_memory" => integer 6906856
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4614
        "start_memory" => integer 6911792
        "stop_time" => float 1397827199.4615
        "stop_memory" => integer 6912376
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4625
        "start_memory" => integer 6927432
        "stop_time" => float 1397827199.4625
        "stop_memory" => integer 6927992
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4627
        "start_memory" => integer 6932928
        "stop_time" => float 1397827199.4627
        "stop_memory" => integer 6933512
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4636
        "start_memory" => integer 6948552
        "stop_time" => float 1397827199.4637
        "stop_memory" => integer 6949112
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4638
        "start_memory" => integer 6954048
        "stop_time" => float 1397827199.4639
        "stop_memory" => integer 6954632
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4662
        "start_memory" => integer 6969896
        "stop_time" => float 1397827199.4662
        "stop_memory" => integer 6970456
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4664
        "start_memory" => integer 6975368
        "stop_time" => float 1397827199.4664
        "stop_memory" => integer 6975936
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.47
        "start_memory" => integer 7013960
        "stop_time" => float 1397827199.47
        "stop_memory" => integer 7014512
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4702
        "start_memory" => integer 7019184
        "stop_time" => float 1397827199.4702
        "stop_memory" => integer 7019760
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.472
        "start_memory" => integer 7150864
        "stop_time" => float 1397827199.472
        "stop_memory" => integer 7151416
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4721
        "start_memory" => integer 7156096
        "stop_time" => float 1397827199.4722
        "stop_memory" => integer 7156672
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4745
        "start_memory" => integer 7325832
        "stop_time" => float 1397827199.4746
        "stop_memory" => integer 7326384
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4748
        "start_memory" => integer 7331072
        "stop_time" => float 1397827199.4749
        "stop_memory" => integer 7331632
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.478
        "start_memory" => integer 7387296
        "stop_time" => float 1397827199.4782
        "stop_memory" => integer 7387872
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4784
        "start_memory" => integer 7392784
        "stop_time" => float 1397827199.4785
        "stop_memory" => integer 7393352
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4799
        "start_memory" => integer 7433384
        "stop_time" => float 1397827199.48
        "stop_memory" => integer 7433960
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4802
        "start_memory" => integer 7438912
        "stop_time" => float 1397827199.4804
        "stop_memory" => integer 7439504
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4823
        "start_memory" => integer 7465448
        "stop_time" => float 1397827199.4825
        "stop_memory" => integer 7466016
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4828
        "start_memory" => integer 7470888
        "stop_time" => float 1397827199.4829
        "stop_memory" => integer 7471464
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4861
        "start_memory" => integer 7497520
        "stop_time" => float 1397827199.4862
        "stop_memory" => integer 7498096
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.491
        "start_memory" => integer 7509000
        "stop_time" => float 1397827199.4911
        "stop_memory" => integer 7509560
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4915
        "start_memory" => integer 7519424
        "stop_time" => float 1397827199.4915
        "stop_memory" => integer 7519992
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4931
        "start_memory" => integer 7530592
        "stop_time" => float 1397827199.4932
        "stop_memory" => integer 7531144
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4933
        "start_memory" => integer 7535872
        "stop_time" => float 1397827199.4934
        "stop_memory" => integer 7536448
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.494
        "start_memory" => integer 7541912
        "stop_time" => float 1397827199.494
        "stop_memory" => integer 7542464
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4941
        "start_memory" => integer 7547192
        "stop_time" => float 1397827199.4942
        "stop_memory" => integer 7547768
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.495
        "start_memory" => integer 7553216
        "stop_time" => float 1397827199.4951
        "stop_memory" => integer 7553768
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4951
        "start_memory" => integer 7558520
        "stop_time" => float 1397827199.4952
        "stop_memory" => integer 7559096
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4964
        "start_memory" => integer 7571104
        "stop_time" => float 1397827199.4965
        "stop_memory" => integer 7571640
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4967
        "start_memory" => integer 7576304
        "stop_time" => float 1397827199.4967
        "stop_memory" => integer 7576872
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4974
        "start_memory" => integer 7579920
        "stop_time" => float 1397827199.4974
        "stop_memory" => integer 7580496
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4976
        "start_memory" => integer 7589768
        "stop_time" => float 1397827199.4976
        "stop_memory" => integer 7590304
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.4978
        "start_memory" => integer 7597024
        "stop_time" => float 1397827199.4978
        "stop_memory" => integer 7597592
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5006
        "start_memory" => integer 7975000
        "stop_time" => float 1397827199.5007
        "stop_memory" => integer 7975576
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5017
        "start_memory" => integer 8050064
        "stop_time" => float 1397827199.5017
        "stop_memory" => integer 8050648
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5023
        "start_memory" => integer 8095880
        "stop_time" => float 1397827199.5023
        "stop_memory" => integer 8096440
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5024
        "start_memory" => integer 8101304
        "stop_time" => float 1397827199.5025
        "stop_memory" => integer 8101888
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.503
        "start_memory" => integer 8110848
        "stop_time" => float 1397827199.5031
        "stop_memory" => integer 8111392
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5037
        "start_memory" => integer 8142864
        "stop_time" => float 1397827199.5038
        "stop_memory" => integer 8143424
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5044
        "start_memory" => integer 8177832
        "stop_time" => float 1397827199.5044
        "stop_memory" => integer 8178408
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5052
        "start_memory" => integer 8210520
        "stop_time" => float 1397827199.5053
        "stop_memory" => integer 8211056
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5054
        "start_memory" => integer 8215712
        "stop_time" => float 1397827199.5055
        "stop_memory" => integer 8216280
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5079
        "start_memory" => integer 8258088
        "stop_time" => float 1397827199.508
        "stop_memory" => integer 8258680
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5081
        "start_memory" => integer 8263864
        "stop_time" => float 1397827199.5082
        "stop_memory" => integer 8264456
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5116
        "start_memory" => integer 8308576
        "stop_time" => float 1397827199.5117
        "stop_memory" => integer 8309128
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5118
        "start_memory" => integer 8314064
        "stop_time" => float 1397827199.5119
        "stop_memory" => integer 8314648
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.517
        "start_memory" => integer 8416336
        "stop_time" => float 1397827199.5172
        "stop_memory" => integer 8416864
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5174
        "start_memory" => integer 8421520
        "stop_time" => float 1397827199.5175
        "stop_memory" => integer 8422088
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5184
        "start_memory" => integer 8437016
        "stop_time" => float 1397827199.5185
        "stop_memory" => integer 8437568
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5186
        "start_memory" => integer 8442216
        "stop_time" => float 1397827199.5187
        "stop_memory" => integer 8442784
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5195
        "start_memory" => integer 8509216
        "stop_time" => float 1397827199.5196
        "stop_memory" => integer 8509776
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5197
        "start_memory" => integer 8514632
        "stop_time" => float 1397827199.5197
        "stop_memory" => integer 8515208
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5202
        "start_memory" => integer 8538648
        "stop_time" => float 1397827199.5203
        "stop_memory" => integer 8539256
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5204
        "start_memory" => integer 8544176
        "stop_time" => float 1397827199.5204
        "stop_memory" => integer 8544768
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5222
        "start_memory" => integer 8615744
        "stop_time" => float 1397827199.5224
        "stop_memory" => integer 8616280
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5226
        "start_memory" => integer 8621152
        "stop_time" => float 1397827199.5227
        "stop_memory" => integer 8621704
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5236
        "start_memory" => integer 8649408
        "stop_time" => float 1397827199.5237
        "stop_memory" => integer 8649944
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5238
        "start_memory" => integer 8654600
        "stop_time" => float 1397827199.5239
        "stop_memory" => integer 8655168
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5255
        "start_memory" => integer 8776392
        "stop_time" => float 1397827199.5256
        "stop_memory" => integer 8776936
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5258
        "start_memory" => integer 8781608
        "stop_time" => float 1397827199.5259
        "stop_memory" => integer 8782176
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5339
        "start_memory" => integer 8813560
        "stop_time" => float 1397827199.5341
        "stop_memory" => integer 8814104
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5342
        "start_memory" => integer 8818752
        "stop_time" => float 1397827199.5344
        "stop_memory" => integer 8819320
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5359
        "start_memory" => integer 8919608
        "stop_time" => float 1397827199.536
        "stop_memory" => integer 8920168
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5362
        "start_memory" => integer 8924880
        "stop_time" => float 1397827199.5362
        "stop_memory" => integer 8925456
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5372
        "start_memory" => integer 9033184
        "stop_time" => float 1397827199.5373
        "stop_memory" => integer 9033752
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5374
        "start_memory" => integer 9038672
        "stop_time" => float 1397827199.5376
        "stop_memory" => integer 9039256
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5389
        "start_memory" => integer 9060440
        "stop_time" => float 1397827199.539
        "stop_memory" => integer 9061016
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5396
        "start_memory" => integer 9025488
        "stop_time" => float 1397827199.5396
        "stop_memory" => integer 9027424
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5402
        "start_memory" => integer 9098144
        "stop_time" => float 1397827199.5403
        "stop_memory" => integer 9099872
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1397827199.5404
        "start_memory" => integer 9099632
        "stop_time" => float 1397827199.5404
        "stop_memory" => integer 9101360
    )
)

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