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-2010 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(242) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1414022128.1705
        "start_memory" => integer 1692096
        "stop_time" => float 1414022128.4794
        "stop_memory" => integer 8471912
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1705
        "start_memory" => integer 1694912
        "stop_time" => float 1414022128.1706
        "stop_memory" => integer 1695504
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1712
        "start_memory" => integer 1823904
        "stop_time" => float 1414022128.1713
        "stop_memory" => integer 1824464
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1713
        "start_memory" => integer 1829896
        "stop_time" => float 1414022128.1714
        "stop_memory" => integer 1830480
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1715
        "start_memory" => integer 1841176
        "stop_time" => float 1414022128.1715
        "stop_memory" => integer 1841720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1716
        "start_memory" => integer 1846624
        "stop_time" => float 1414022128.1717
        "stop_memory" => integer 1847200
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1718
        "start_memory" => integer 1850552
        "stop_time" => float 1414022128.1719
        "stop_memory" => integer 1851136
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1755
        "start_memory" => integer 2434904
        "stop_time" => float 1414022128.1755
        "stop_memory" => integer 2435480
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1756
        "start_memory" => integer 2440352
        "stop_time" => float 1414022128.1757
        "stop_memory" => integer 2440992
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1761
        "start_memory" => integer 2586704
        "stop_time" => float 1414022128.1762
        "stop_memory" => integer 2587232
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1762
        "start_memory" => integer 2591880
        "stop_time" => float 1414022128.1763
        "stop_memory" => integer 2592448
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1767
        "start_memory" => integer 2624208
        "stop_time" => float 1414022128.1767
        "stop_memory" => integer 2624752
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1768
        "start_memory" => integer 2629392
        "stop_time" => float 1414022128.1768
        "stop_memory" => integer 2629960
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1776
        "start_memory" => integer 2797512
        "stop_time" => float 1414022128.1776
        "stop_memory" => integer 2798056
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1777
        "start_memory" => integer 2802696
        "stop_time" => float 1414022128.1777
        "stop_memory" => integer 2803264
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.178
        "start_memory" => integer 2857784
        "stop_time" => float 1414022128.1781
        "stop_memory" => integer 2858376
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1782
        "start_memory" => integer 2860296
        "stop_time" => float 1414022128.1782
        "stop_memory" => integer 2860984
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1783
        "start_memory" => integer 2865864
        "stop_time" => float 1414022128.1784
        "stop_memory" => integer 2866448
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1785
        "start_memory" => integer 2869160
        "stop_time" => float 1414022128.1786
        "stop_memory" => integer 2869720
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1787
        "start_memory" => integer 2874600
        "stop_time" => float 1414022128.1787
        "stop_memory" => integer 2875184
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.179
        "start_memory" => integer 2924680
        "stop_time" => float 1414022128.179
        "stop_memory" => integer 2925224
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1791
        "start_memory" => integer 2929896
        "stop_time" => float 1414022128.1791
        "stop_memory" => integer 2930472
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1798
        "start_memory" => integer 3026832
        "stop_time" => float 1414022128.1799
        "stop_memory" => integer 3027368
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.18
        "start_memory" => integer 3032008
        "stop_time" => float 1414022128.18
        "stop_memory" => integer 3032576
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.1821
        "start_memory" => integer 3117144
        "stop_time" => float 1414022128.1821
        "stop_memory" => integer 3117736
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2458
        "start_memory" => integer 3157008
        "stop_time" => float 1414022128.2458
        "stop_memory" => integer 3157576
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2459
        "start_memory" => integer 3162240
        "stop_time" => float 1414022128.2459
        "stop_memory" => integer 3162816
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2471
        "start_memory" => integer 3216736
        "stop_time" => float 1414022128.2471
        "stop_memory" => integer 3217288
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2472
        "start_memory" => integer 3222128
        "stop_time" => float 1414022128.2472
        "stop_memory" => integer 3222704
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2481
        "start_memory" => integer 3247744
        "stop_time" => float 1414022128.2481
        "stop_memory" => integer 3248296
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2483
        "start_memory" => integer 3252984
        "stop_time" => float 1414022128.2483
        "stop_memory" => integer 3253560
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2493
        "start_memory" => integer 3326704
        "stop_time" => float 1414022128.2493
        "stop_memory" => integer 3327288
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2495
        "start_memory" => integer 3345280
        "stop_time" => float 1414022128.2496
        "stop_memory" => integer 3346096
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2497
        "start_memory" => integer 3350960
        "stop_time" => float 1414022128.2497
        "stop_memory" => integer 3351544
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2504
        "start_memory" => integer 3416672
        "stop_time" => float 1414022128.2505
        "stop_memory" => integer 3417248
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2508
        "start_memory" => integer 3436648
        "stop_time" => float 1414022128.2509
        "stop_memory" => integer 3437224
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2514
        "start_memory" => integer 3485800
        "stop_time" => float 1414022128.2514
        "stop_memory" => integer 3486376
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2516
        "start_memory" => integer 3497568
        "stop_time" => float 1414022128.2516
        "stop_memory" => integer 3498144
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2519
        "start_memory" => integer 3516160
        "stop_time" => float 1414022128.252
        "stop_memory" => integer 3516736
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2523
        "start_memory" => integer 3526408
        "stop_time" => float 1414022128.2523
        "stop_memory" => integer 3526984
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2526
        "start_memory" => integer 3547112
        "stop_time" => float 1414022128.2526
        "stop_memory" => integer 3547688
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2529
        "start_memory" => integer 3568168
        "stop_time" => float 1414022128.2529
        "stop_memory" => integer 3568760
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2531
        "start_memory" => integer 3581984
        "stop_time" => float 1414022128.2532
        "stop_memory" => integer 3582552
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2534
        "start_memory" => integer 3594768
        "stop_time" => float 1414022128.2535
        "stop_memory" => integer 3595344
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2538
        "start_memory" => integer 3643592
        "stop_time" => float 1414022128.2538
        "stop_memory" => integer 3644152
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2542
        "start_memory" => integer 3682624
        "stop_time" => float 1414022128.2542
        "stop_memory" => integer 3683208
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2545
        "start_memory" => integer 3702608
        "stop_time" => float 1414022128.2546
        "stop_memory" => integer 3703184
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2549
        "start_memory" => integer 3734360
        "stop_time" => float 1414022128.255
        "stop_memory" => integer 3734936
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2553
        "start_memory" => integer 3753648
        "stop_time" => float 1414022128.2553
        "stop_memory" => integer 3754192
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2554
        "start_memory" => integer 3758864
        "stop_time" => float 1414022128.2554
        "stop_memory" => integer 3759440
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.266
        "start_memory" => integer 3880144
        "stop_time" => float 1414022128.266
        "stop_memory" => integer 3880696
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2661
        "start_memory" => integer 3885528
        "stop_time" => float 1414022128.2662
        "stop_memory" => integer 3886104
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2701
        "start_memory" => integer 3911576
        "stop_time" => float 1414022128.2701
        "stop_memory" => integer 3912160
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2702
        "start_memory" => integer 3917096
        "stop_time" => float 1414022128.2702
        "stop_memory" => integer 3917672
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2749
        "start_memory" => integer 3943296
        "stop_time" => float 1414022128.2749
        "stop_memory" => integer 3943856
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.275
        "start_memory" => integer 3948712
        "stop_time" => float 1414022128.2751
        "stop_memory" => integer 3949280
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2758
        "start_memory" => integer 4036680
        "stop_time" => float 1414022128.2759
        "stop_memory" => integer 4037280
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2814
        "start_memory" => integer 4044208
        "stop_time" => float 1414022128.2814
        "stop_memory" => integer 4044760
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2815
        "start_memory" => integer 4049664
        "stop_time" => float 1414022128.2816
        "stop_memory" => integer 4050248
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2978
        "start_memory" => integer 4107120
        "stop_time" => float 1414022128.2978
        "stop_memory" => integer 4107680
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.298
        "start_memory" => integer 4112600
        "stop_time" => float 1414022128.298
        "stop_memory" => integer 4113184
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2982
        "start_memory" => integer 4136464
        "stop_time" => float 1414022128.2982
        "stop_memory" => integer 4137040
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.299
        "start_memory" => integer 4146160
        "stop_time" => float 1414022128.299
        "stop_memory" => integer 4146720
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.2991
        "start_memory" => integer 4151584
        "stop_time" => float 1414022128.2991
        "stop_memory" => integer 4152168
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3002
        "start_memory" => integer 4231632
        "stop_time" => float 1414022128.3003
        "stop_memory" => integer 4232704
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3004
        "start_memory" => integer 4237608
        "stop_time" => float 1414022128.3004
        "stop_memory" => integer 4238192
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3061
        "start_memory" => integer 4263840
        "stop_time" => float 1414022128.3062
        "stop_memory" => integer 4264400
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3063
        "start_memory" => integer 4269264
        "stop_time" => float 1414022128.3064
        "stop_memory" => integer 4269848
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3072
        "start_memory" => integer 4291240
        "stop_time" => float 1414022128.3073
        "stop_memory" => integer 4291768
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3074
        "start_memory" => integer 4296416
        "stop_time" => float 1414022128.3074
        "stop_memory" => integer 4296984
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3101
        "start_memory" => integer 4307888
        "stop_time" => float 1414022128.3101
        "stop_memory" => integer 4308480
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3112
        "start_memory" => integer 4319264
        "stop_time" => float 1414022128.3113
        "stop_memory" => integer 4319840
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3116
        "start_memory" => integer 4358432
        "stop_time" => float 1414022128.3117
        "stop_memory" => integer 4358920
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3134
        "start_memory" => integer 4360096
        "stop_time" => float 1414022128.3135
        "stop_memory" => integer 4360672
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3158
        "start_memory" => integer 4389680
        "stop_time" => float 1414022128.3159
        "stop_memory" => integer 4390224
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.316
        "start_memory" => integer 4395080
        "stop_time" => float 1414022128.3161
        "stop_memory" => integer 4395656
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3204
        "start_memory" => integer 4410168
        "stop_time" => float 1414022128.3205
        "stop_memory" => integer 4410736
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3224
        "start_memory" => integer 4415576
        "stop_time" => float 1414022128.3225
        "stop_memory" => integer 4416112
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3228
        "start_memory" => integer 4420768
        "stop_time" => float 1414022128.3228
        "stop_memory" => integer 4421336
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3236
        "start_memory" => integer 4449112
        "stop_time" => float 1414022128.3237
        "stop_memory" => integer 4449688
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3238
        "start_memory" => integer 4454528
        "stop_time" => float 1414022128.3238
        "stop_memory" => integer 4455112
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3267
        "start_memory" => integer 4575184
        "stop_time" => float 1414022128.3268
        "stop_memory" => integer 4575760
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.327
        "start_memory" => integer 4580712
        "stop_time" => float 1414022128.327
        "stop_memory" => integer 4581304
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3271
        "start_memory" => integer 4586464
        "stop_time" => float 1414022128.3272
        "stop_memory" => integer 4587016
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3279
        "start_memory" => integer 4606448
        "stop_time" => float 1414022128.328
        "stop_memory" => integer 4607040
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3281
        "start_memory" => integer 4612000
        "stop_time" => float 1414022128.3282
        "stop_memory" => integer 4612592
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.33
        "start_memory" => integer 4618528
        "stop_time" => float 1414022128.33
        "stop_memory" => integer 4619080
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3303
        "start_memory" => integer 4623952
        "stop_time" => float 1414022128.3304
        "stop_memory" => integer 4624528
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3318
        "start_memory" => integer 4756400
        "stop_time" => float 1414022128.3318
        "stop_memory" => integer 4756976
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3319
        "start_memory" => integer 4761936
        "stop_time" => float 1414022128.3319
        "stop_memory" => integer 4762528
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3322
        "start_memory" => integer 4783208
        "stop_time" => float 1414022128.3322
        "stop_memory" => integer 4783776
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3323
        "start_memory" => integer 4788664
        "stop_time" => float 1414022128.3324
        "stop_memory" => integer 4789240
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3335
        "start_memory" => integer 4851272
        "stop_time" => float 1414022128.3336
        "stop_memory" => integer 4851832
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3336
        "start_memory" => integer 4856704
        "stop_time" => float 1414022128.3337
        "stop_memory" => integer 4857288
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3345
        "start_memory" => integer 4915496
        "stop_time" => float 1414022128.3345
        "stop_memory" => integer 4916056
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3346
        "start_memory" => integer 4920920
        "stop_time" => float 1414022128.3346
        "stop_memory" => integer 4921504
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3354
        "start_memory" => integer 4964072
        "stop_time" => float 1414022128.3354
        "stop_memory" => integer 4964648
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3355
        "start_memory" => integer 4969616
        "stop_time" => float 1414022128.3355
        "stop_memory" => integer 4970216
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3364
        "start_memory" => integer 5020160
        "stop_time" => float 1414022128.3365
        "stop_memory" => integer 5020736
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3366
        "start_memory" => integer 5026824
        "stop_time" => float 1414022128.3366
        "stop_memory" => integer 5027424
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3368
        "start_memory" => integer 5047072
        "stop_time" => float 1414022128.3368
        "stop_memory" => integer 5047648
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.337
        "start_memory" => integer 5053720
        "stop_time" => float 1414022128.337
        "stop_memory" => integer 5054328
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3384
        "start_memory" => integer 5117288
        "stop_time" => float 1414022128.3384
        "stop_memory" => integer 5117864
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3386
        "start_memory" => integer 5122928
        "stop_time" => float 1414022128.3386
        "stop_memory" => integer 5123528
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3395
        "start_memory" => integer 5171112
        "stop_time" => float 1414022128.3396
        "stop_memory" => integer 5171688
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3397
        "start_memory" => integer 5176744
        "stop_time" => float 1414022128.3397
        "stop_memory" => integer 5177344
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3409
        "start_memory" => integer 5209392
        "stop_time" => float 1414022128.3409
        "stop_memory" => integer 5209968
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.341
        "start_memory" => integer 5215032
        "stop_time" => float 1414022128.3411
        "stop_memory" => integer 5215632
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3428
        "start_memory" => integer 5315464
        "stop_time" => float 1414022128.3428
        "stop_memory" => integer 5316040
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.343
        "start_memory" => integer 5321104
        "stop_time" => float 1414022128.343
        "stop_memory" => integer 5321704
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3455
        "start_memory" => integer 5369600
        "stop_time" => float 1414022128.3456
        "stop_memory" => integer 5370160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3457
        "start_memory" => integer 5375128
        "stop_time" => float 1414022128.3457
        "stop_memory" => integer 5375720
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3467
        "start_memory" => integer 5398848
        "stop_time" => float 1414022128.3468
        "stop_memory" => integer 5399368
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3469
        "start_memory" => integer 5404008
        "stop_time" => float 1414022128.347
        "stop_memory" => integer 5404576
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3486
        "start_memory" => integer 5513648
        "stop_time" => float 1414022128.3487
        "stop_memory" => integer 5514208
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3488
        "start_memory" => integer 5518880
        "stop_time" => float 1414022128.3488
        "stop_memory" => integer 5519456
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3551
        "start_memory" => integer 5539208
        "stop_time" => float 1414022128.3552
        "stop_memory" => integer 5539744
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3554
        "start_memory" => integer 5544408
        "stop_time" => float 1414022128.3555
        "stop_memory" => integer 5544976
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3594
        "start_memory" => integer 5582408
        "stop_time" => float 1414022128.3595
        "stop_memory" => integer 5582952
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3597
        "start_memory" => integer 5587592
        "stop_time" => float 1414022128.3598
        "stop_memory" => integer 5588160
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.361
        "start_memory" => integer 5630488
        "stop_time" => float 1414022128.3611
        "stop_memory" => integer 5631032
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3612
        "start_memory" => integer 5635672
        "stop_time" => float 1414022128.3613
        "stop_memory" => integer 5636264
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3622
        "start_memory" => integer 5665608
        "stop_time" => float 1414022128.3623
        "stop_memory" => integer 5666152
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3624
        "start_memory" => integer 5670792
        "stop_time" => float 1414022128.3625
        "stop_memory" => integer 5671360
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3644
        "start_memory" => integer 5746376
        "stop_time" => float 1414022128.3646
        "stop_memory" => integer 5746920
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3647
        "start_memory" => integer 5751576
        "stop_time" => float 1414022128.3648
        "stop_memory" => integer 5752144
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.368
        "start_memory" => integer 5774272
        "stop_time" => float 1414022128.3681
        "stop_memory" => integer 5774816
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3682
        "start_memory" => integer 5779456
        "stop_time" => float 1414022128.3683
        "stop_memory" => integer 5780024
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3711
        "start_memory" => integer 5800880
        "stop_time" => float 1414022128.3712
        "stop_memory" => integer 5802464
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3714
        "start_memory" => integer 5807160
        "stop_time" => float 1414022128.3714
        "stop_memory" => integer 5807736
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3735
        "start_memory" => integer 5935072
        "stop_time" => float 1414022128.3736
        "stop_memory" => integer 5935624
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3737
        "start_memory" => integer 5940304
        "stop_time" => float 1414022128.3737
        "stop_memory" => integer 5940880
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3762
        "start_memory" => integer 6107928
        "stop_time" => float 1414022128.3763
        "stop_memory" => integer 6108480
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3765
        "start_memory" => integer 6113168
        "stop_time" => float 1414022128.3766
        "stop_memory" => integer 6113728
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3803
        "start_memory" => integer 6169312
        "stop_time" => float 1414022128.3804
        "stop_memory" => integer 6169888
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3806
        "start_memory" => integer 6174776
        "stop_time" => float 1414022128.3807
        "stop_memory" => integer 6175344
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3818
        "start_memory" => integer 6215392
        "stop_time" => float 1414022128.3819
        "stop_memory" => integer 6215968
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.382
        "start_memory" => integer 6220920
        "stop_time" => float 1414022128.382
        "stop_memory" => integer 6221528
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.384
        "start_memory" => integer 6247448
        "stop_time" => float 1414022128.3841
        "stop_memory" => integer 6248016
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3842
        "start_memory" => integer 6252888
        "stop_time" => float 1414022128.3843
        "stop_memory" => integer 6253464
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3878
        "start_memory" => integer 6282696
        "stop_time" => float 1414022128.3878
        "stop_memory" => integer 6283272
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.3914
        "start_memory" => integer 6292760
        "stop_time" => float 1414022128.3915
        "stop_memory" => integer 6293336
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4004
        "start_memory" => integer 6329472
        "stop_time" => float 1414022128.4006
        "stop_memory" => integer 6330032
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4009
        "start_memory" => integer 6338504
        "stop_time" => float 1414022128.4009
        "stop_memory" => integer 6338992
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4033
        "start_memory" => integer 6339248
        "stop_time" => float 1414022128.4034
        "stop_memory" => integer 6339816
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4053
        "start_memory" => integer 6346280
        "stop_time" => float 1414022128.4054
        "stop_memory" => integer 6346848
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.407
        "start_memory" => integer 6358656
        "stop_time" => float 1414022128.4071
        "stop_memory" => integer 6359240
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4079
        "start_memory" => integer 6367984
        "stop_time" => float 1414022128.408
        "stop_memory" => integer 6368560
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4086
        "start_memory" => integer 6371640
        "stop_time" => float 1414022128.4087
        "stop_memory" => integer 6372200
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4092
        "start_memory" => integer 6380544
        "stop_time" => float 1414022128.4093
        "stop_memory" => integer 6381112
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4097
        "start_memory" => integer 6389416
        "stop_time" => float 1414022128.4098
        "stop_memory" => integer 6389952
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4099
        "start_memory" => integer 6394600
        "stop_time" => float 1414022128.41
        "stop_memory" => integer 6395168
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4108
        "start_memory" => integer 6404472
        "stop_time" => float 1414022128.4108
        "stop_memory" => integer 6405048
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.411
        "start_memory" => integer 6413760
        "stop_time" => float 1414022128.411
        "stop_memory" => integer 6414296
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4111
        "start_memory" => integer 6418944
        "stop_time" => float 1414022128.4112
        "stop_memory" => integer 6419512
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4144
        "start_memory" => integer 6769872
        "stop_time" => float 1414022128.4145
        "stop_memory" => integer 6770448
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4156
        "start_memory" => integer 6853864
        "stop_time" => float 1414022128.4156
        "stop_memory" => integer 6854448
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4165
        "start_memory" => integer 6897608
        "stop_time" => float 1414022128.4166
        "stop_memory" => integer 6898152
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4174
        "start_memory" => integer 6927544
        "stop_time" => float 1414022128.4174
        "stop_memory" => integer 6928104
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4182
        "start_memory" => integer 6960008
        "stop_time" => float 1414022128.4182
        "stop_memory" => integer 6960584
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4191
        "start_memory" => integer 6990904
        "stop_time" => float 1414022128.4192
        "stop_memory" => integer 6991440
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4193
        "start_memory" => integer 6996088
        "stop_time" => float 1414022128.4194
        "stop_memory" => integer 6996656
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4204
        "start_memory" => integer 7007656
        "stop_time" => float 1414022128.4204
        "stop_memory" => integer 7008216
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4206
        "start_memory" => integer 7012912
        "stop_time" => float 1414022128.4206
        "stop_memory" => integer 7013488
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4218
        "start_memory" => integer 7056272
        "stop_time" => float 1414022128.4219
        "stop_memory" => integer 7056824
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.422
        "start_memory" => integer 7061496
        "stop_time" => float 1414022128.4221
        "stop_memory" => integer 7062072
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4228
        "start_memory" => integer 7075848
        "stop_time" => float 1414022128.4229
        "stop_memory" => integer 7076416
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.423
        "start_memory" => integer 7081288
        "stop_time" => float 1414022128.4232
        "stop_memory" => integer 7081872
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4236
        "start_memory" => integer 7097568
        "stop_time" => float 1414022128.4236
        "stop_memory" => integer 7098128
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4237
        "start_memory" => integer 7103016
        "stop_time" => float 1414022128.4238
        "stop_memory" => integer 7103600
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4242
        "start_memory" => integer 7121680
        "stop_time" => float 1414022128.4243
        "stop_memory" => integer 7122256
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4245
        "start_memory" => integer 7127248
        "stop_time" => float 1414022128.4245
        "stop_memory" => integer 7127840
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4248
        "start_memory" => integer 7133288
        "stop_time" => float 1414022128.4249
        "stop_memory" => integer 7133840
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.425
        "start_memory" => integer 7138720
        "stop_time" => float 1414022128.4251
        "stop_memory" => integer 7139304
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4253
        "start_memory" => integer 7148024
        "stop_time" => float 1414022128.4253
        "stop_memory" => integer 7148584
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4254
        "start_memory" => integer 7153456
        "stop_time" => float 1414022128.4255
        "stop_memory" => integer 7154040
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.427
        "start_memory" => integer 7251632
        "stop_time" => float 1414022128.4272
        "stop_memory" => integer 7252208
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4273
        "start_memory" => integer 7257192
        "stop_time" => float 1414022128.4274
        "stop_memory" => integer 7257784
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4283
        "start_memory" => integer 7276624
        "stop_time" => float 1414022128.4283
        "stop_memory" => integer 7277208
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4285
        "start_memory" => integer 7282240
        "stop_time" => float 1414022128.4285
        "stop_memory" => integer 7282824
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4293
        "start_memory" => integer 7299648
        "stop_time" => float 1414022128.4294
        "stop_memory" => integer 7300216
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4295
        "start_memory" => integer 7305160
        "stop_time" => float 1414022128.4297
        "stop_memory" => integer 7305752
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4305
        "start_memory" => integer 7324512
        "stop_time" => float 1414022128.4306
        "stop_memory" => integer 7325064
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4307
        "start_memory" => integer 7329928
        "stop_time" => float 1414022128.4308
        "stop_memory" => integer 7330512
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.431
        "start_memory" => integer 7337888
        "stop_time" => float 1414022128.431
        "stop_memory" => integer 7338448
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4312
        "start_memory" => integer 7343320
        "stop_time" => float 1414022128.4312
        "stop_memory" => integer 7343904
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.432
        "start_memory" => integer 7357096
        "stop_time" => float 1414022128.4322
        "stop_memory" => integer 7357672
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4323
        "start_memory" => integer 7362624
        "stop_time" => float 1414022128.4323
        "stop_memory" => integer 7363216
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4331
        "start_memory" => integer 7367896
        "stop_time" => float 1414022128.4332
        "stop_memory" => integer 7368448
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4333
        "start_memory" => integer 7373328
        "stop_time" => float 1414022128.4334
        "stop_memory" => integer 7373912
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4342
        "start_memory" => integer 7389200
        "stop_time" => float 1414022128.4343
        "stop_memory" => integer 7389760
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4344
        "start_memory" => integer 7394640
        "stop_time" => float 1414022128.4344
        "stop_memory" => integer 7395224
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4354
        "start_memory" => integer 7433208
        "stop_time" => float 1414022128.4355
        "stop_memory" => integer 7433784
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4357
        "start_memory" => integer 7438744
        "stop_time" => float 1414022128.4357
        "stop_memory" => integer 7439336
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4379
        "start_memory" => integer 7453064
        "stop_time" => float 1414022128.438
        "stop_memory" => integer 7453632
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4382
        "start_memory" => integer 7458600
        "stop_time" => float 1414022128.4383
        "stop_memory" => integer 7459192
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4405
        "start_memory" => integer 7469528
        "stop_time" => float 1414022128.4406
        "stop_memory" => integer 7470096
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4407
        "start_memory" => integer 7475040
        "stop_time" => float 1414022128.4408
        "stop_memory" => integer 7475632
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4416
        "start_memory" => integer 7495992
        "stop_time" => float 1414022128.4416
        "stop_memory" => integer 7496560
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4418
        "start_memory" => integer 7501528
        "stop_time" => float 1414022128.4419
        "stop_memory" => integer 7502120
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4425
        "start_memory" => integer 7521448
        "stop_time" => float 1414022128.4426
        "stop_memory" => integer 7522016
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4427
        "start_memory" => integer 7527032
        "stop_time" => float 1414022128.4428
        "stop_memory" => integer 7527624
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4433
        "start_memory" => integer 7544864
        "stop_time" => float 1414022128.4434
        "stop_memory" => integer 7545432
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4434
        "start_memory" => integer 7550400
        "stop_time" => float 1414022128.4435
        "stop_memory" => integer 7550992
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.444
        "start_memory" => integer 7569328
        "stop_time" => float 1414022128.444
        "stop_memory" => integer 7569896
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4441
        "start_memory" => integer 7574848
        "stop_time" => float 1414022128.4442
        "stop_memory" => integer 7575440
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4447
        "start_memory" => integer 7595576
        "stop_time" => float 1414022128.4447
        "stop_memory" => integer 7596128
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4448
        "start_memory" => integer 7601008
        "stop_time" => float 1414022128.4448
        "stop_memory" => integer 7601592
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4455
        "start_memory" => integer 7611960
        "stop_time" => float 1414022128.4455
        "stop_memory" => integer 7612520
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4456
        "start_memory" => integer 7617408
        "stop_time" => float 1414022128.4457
        "stop_memory" => integer 7617992
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4462
        "start_memory" => integer 7633488
        "stop_time" => float 1414022128.4463
        "stop_memory" => integer 7634064
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4464
        "start_memory" => integer 7639080
        "stop_time" => float 1414022128.4464
        "stop_memory" => integer 7639672
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4474
        "start_memory" => integer 7651144
        "stop_time" => float 1414022128.4475
        "stop_memory" => integer 7651712
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4476
        "start_memory" => integer 7656728
        "stop_time" => float 1414022128.4476
        "stop_memory" => integer 7657320
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4488
        "start_memory" => integer 7667120
        "stop_time" => float 1414022128.4488
        "stop_memory" => integer 7667688
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.449
        "start_memory" => integer 7672624
        "stop_time" => float 1414022128.449
        "stop_memory" => integer 7673200
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4496
        "start_memory" => integer 7679384
        "stop_time" => float 1414022128.4497
        "stop_memory" => integer 7679984
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4498
        "start_memory" => integer 7684936
        "stop_time" => float 1414022128.4499
        "stop_memory" => integer 7685528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4519
        "start_memory" => integer 7695384
        "stop_time" => float 1414022128.452
        "stop_memory" => integer 7695936
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4522
        "start_memory" => integer 7700816
        "stop_time" => float 1414022128.4522
        "stop_memory" => integer 7701400
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4542
        "start_memory" => integer 7775784
        "stop_time" => float 1414022128.4543
        "stop_memory" => integer 7776312
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4544
        "start_memory" => integer 7780960
        "stop_time" => float 1414022128.4545
        "stop_memory" => integer 7781528
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4591
        "start_memory" => integer 7807584
        "stop_time" => float 1414022128.4593
        "stop_memory" => integer 7808128
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4594
        "start_memory" => integer 7812784
        "stop_time" => float 1414022128.4595
        "stop_memory" => integer 7813352
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4606
        "start_memory" => integer 7845152
        "stop_time" => float 1414022128.4607
        "stop_memory" => integer 7845696
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4608
        "start_memory" => integer 7850344
        "stop_time" => float 1414022128.4608
        "stop_memory" => integer 7850912
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4617
        "start_memory" => integer 7917224
        "stop_time" => float 1414022128.4618
        "stop_memory" => integer 7917784
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4619
        "start_memory" => integer 7924688
        "stop_time" => float 1414022128.462
        "stop_memory" => integer 7925264
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4629
        "start_memory" => integer 7948712
        "stop_time" => float 1414022128.4629
        "stop_memory" => integer 7949296
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4631
        "start_memory" => integer 7956264
        "stop_time" => float 1414022128.4632
        "stop_memory" => integer 7956856
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4652
        "start_memory" => integer 8027544
        "stop_time" => float 1414022128.4653
        "stop_memory" => integer 8028080
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4654
        "start_memory" => integer 8032928
        "stop_time" => float 1414022128.4655
        "stop_memory" => integer 8033504
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4664
        "start_memory" => integer 8061232
        "stop_time" => float 1414022128.4665
        "stop_memory" => integer 8061768
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4666
        "start_memory" => integer 8066424
        "stop_time" => float 1414022128.4667
        "stop_memory" => integer 8066992
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4682
        "start_memory" => integer 8187840
        "stop_time" => float 1414022128.4683
        "stop_memory" => integer 8188384
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4684
        "start_memory" => integer 8193056
        "stop_time" => float 1414022128.4685
        "stop_memory" => integer 8193624
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4751
        "start_memory" => integer 8232328
        "stop_time" => float 1414022128.4752
        "stop_memory" => integer 8232872
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4754
        "start_memory" => integer 8237528
        "stop_time" => float 1414022128.4755
        "stop_memory" => integer 8238096
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4776
        "start_memory" => integer 8479024
        "stop_time" => float 1414022128.4777
        "stop_memory" => integer 8479600
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4778
        "start_memory" => integer 8484536
        "stop_time" => float 1414022128.4778
        "stop_memory" => integer 8485120
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4788
        "start_memory" => integer 8503152
        "stop_time" => float 1414022128.4789
        "stop_memory" => integer 8503728
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414022128.4793
        "start_memory" => integer 8470416
        "stop_time" => float 1414022128.4793
        "stop_memory" => integer 8472528
    )
)

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