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 1438539744.6791
        "start_memory" => integer 901408
        "stop_time" => float 1438539744.9496
        "stop_memory" => integer 5452448
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6792
        "start_memory" => integer 903712
        "stop_time" => float 1438539744.6792
        "stop_memory" => integer 904400
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6801
        "start_memory" => integer 981112
        "stop_time" => float 1438539744.6802
        "stop_memory" => integer 981672
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6803
        "start_memory" => integer 985688
        "stop_time" => float 1438539744.6804
        "stop_memory" => integer 986280
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6805
        "start_memory" => integer 993912
        "stop_time" => float 1438539744.6806
        "stop_memory" => integer 994464
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6807
        "start_memory" => integer 998104
        "stop_time" => float 1438539744.6808
        "stop_memory" => integer 998688
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.681
        "start_memory" => integer 1001896
        "stop_time" => float 1438539744.6811
        "stop_memory" => integer 1002488
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6857
        "start_memory" => integer 1323072
        "stop_time" => float 1438539744.6858
        "stop_memory" => integer 1323608
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6858
        "start_memory" => integer 1327016
        "stop_time" => float 1438539744.686
        "stop_memory" => integer 1327656
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6864
        "start_memory" => integer 1346432
        "stop_time" => float 1438539744.6865
        "stop_memory" => integer 1347016
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6866
        "start_memory" => integer 1350432
        "stop_time" => float 1438539744.6867
        "stop_memory" => integer 1351008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6879
        "start_memory" => integer 1450352
        "stop_time" => float 1438539744.6879
        "stop_memory" => integer 1450952
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.688
        "start_memory" => integer 1454456
        "stop_time" => float 1438539744.6882
        "stop_memory" => integer 1455056
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6889
        "start_memory" => integer 1567952
        "stop_time" => float 1438539744.689
        "stop_memory" => integer 1568496
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6891
        "start_memory" => integer 1571920
        "stop_time" => float 1438539744.6891
        "stop_memory" => integer 1572488
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6896
        "start_memory" => integer 1606536
        "stop_time" => float 1438539744.6897
        "stop_memory" => integer 1607136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6897
        "start_memory" => integer 1609672
        "stop_time" => float 1438539744.6898
        "stop_memory" => integer 1610384
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6899
        "start_memory" => integer 1613896
        "stop_time" => float 1438539744.69
        "stop_memory" => integer 1614496
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6901
        "start_memory" => integer 1616184
        "stop_time" => float 1438539744.6902
        "stop_memory" => integer 1616784
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6903
        "start_memory" => integer 1620304
        "stop_time" => float 1438539744.6903
        "stop_memory" => integer 1620880
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6907
        "start_memory" => integer 1650304
        "stop_time" => float 1438539744.6909
        "stop_memory" => integer 1650864
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6909
        "start_memory" => integer 1654360
        "stop_time" => float 1438539744.691
        "stop_memory" => integer 1654952
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6918
        "start_memory" => integer 1716152
        "stop_time" => float 1438539744.6919
        "stop_memory" => integer 1716704
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.692
        "start_memory" => integer 1720152
        "stop_time" => float 1438539744.6921
        "stop_memory" => integer 1720720
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.6942
        "start_memory" => integer 1778512
        "stop_time" => float 1438539744.6943
        "stop_memory" => integer 1779128
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7863
        "start_memory" => integer 1817080
        "stop_time" => float 1438539744.7863
        "stop_memory" => integer 1817648
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7864
        "start_memory" => integer 1821072
        "stop_time" => float 1438539744.7864
        "stop_memory" => integer 1821656
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7874
        "start_memory" => integer 1855744
        "stop_time" => float 1438539744.7874
        "stop_memory" => integer 1856320
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7876
        "start_memory" => integer 1859800
        "stop_time" => float 1438539744.7876
        "stop_memory" => integer 1860392
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7882
        "start_memory" => integer 1879016
        "stop_time" => float 1438539744.7883
        "stop_memory" => integer 1879584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7883
        "start_memory" => integer 1883048
        "stop_time" => float 1438539744.7884
        "stop_memory" => integer 1883640
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7891
        "start_memory" => integer 1930952
        "stop_time" => float 1438539744.7891
        "stop_memory" => integer 1931552
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7893
        "start_memory" => integer 1943088
        "stop_time" => float 1438539744.7893
        "stop_memory" => integer 1943920
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7894
        "start_memory" => integer 1947432
        "stop_time" => float 1438539744.7894
        "stop_memory" => integer 1948016
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7899
        "start_memory" => integer 1986024
        "stop_time" => float 1438539744.79
        "stop_memory" => integer 1986624
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7902
        "start_memory" => integer 1998696
        "stop_time" => float 1438539744.7902
        "stop_memory" => integer 1999272
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7906
        "start_memory" => integer 2026272
        "stop_time" => float 1438539744.7907
        "stop_memory" => integer 2026872
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7909
        "start_memory" => integer 2035704
        "stop_time" => float 1438539744.7909
        "stop_memory" => integer 2036280
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7911
        "start_memory" => integer 2049416
        "stop_time" => float 1438539744.7912
        "stop_memory" => integer 2050016
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7914
        "start_memory" => integer 2057032
        "stop_time" => float 1438539744.7914
        "stop_memory" => integer 2057624
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7918
        "start_memory" => integer 2070912
        "stop_time" => float 1438539744.7918
        "stop_memory" => integer 2071504
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.792
        "start_memory" => integer 2085144
        "stop_time" => float 1438539744.792
        "stop_memory" => integer 2085736
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7923
        "start_memory" => integer 2095216
        "stop_time" => float 1438539744.7923
        "stop_memory" => integer 2095808
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7925
        "start_memory" => integer 2104480
        "stop_time" => float 1438539744.7925
        "stop_memory" => integer 2105072
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7928
        "start_memory" => integer 2150392
        "stop_time" => float 1438539744.7928
        "stop_memory" => integer 2150968
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7932
        "start_memory" => integer 2173896
        "stop_time" => float 1438539744.7933
        "stop_memory" => integer 2174496
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7935
        "start_memory" => integer 2187792
        "stop_time" => float 1438539744.7935
        "stop_memory" => integer 2188368
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7938
        "start_memory" => integer 2207568
        "stop_time" => float 1438539744.7938
        "stop_memory" => integer 2208152
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7941
        "start_memory" => integer 2221784
        "stop_time" => float 1438539744.7941
        "stop_memory" => integer 2222352
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.7942
        "start_memory" => integer 2225808
        "stop_time" => float 1438539744.7942
        "stop_memory" => integer 2226384
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8017
        "start_memory" => integer 2316880
        "stop_time" => float 1438539744.8017
        "stop_memory" => integer 2317456
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8018
        "start_memory" => integer 2320936
        "stop_time" => float 1438539744.8019
        "stop_memory" => integer 2321528
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8051
        "start_memory" => integer 2340616
        "stop_time" => float 1438539744.8052
        "stop_memory" => integer 2341200
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8053
        "start_memory" => integer 2344728
        "stop_time" => float 1438539744.8053
        "stop_memory" => integer 2345328
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8086
        "start_memory" => integer 2364480
        "stop_time" => float 1438539744.8086
        "stop_memory" => integer 2365040
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8087
        "start_memory" => integer 2368520
        "stop_time" => float 1438539744.8087
        "stop_memory" => integer 2369112
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8093
        "start_memory" => integer 2422744
        "stop_time" => float 1438539744.8093
        "stop_memory" => integer 2423344
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8132
        "start_memory" => integer 2430664
        "stop_time" => float 1438539744.8132
        "stop_memory" => integer 2431240
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8134
        "start_memory" => integer 2434768
        "stop_time" => float 1438539744.8135
        "stop_memory" => integer 2435368
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8254
        "start_memory" => integer 2475000
        "stop_time" => float 1438539744.8255
        "stop_memory" => integer 2475576
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8255
        "start_memory" => integer 2479104
        "stop_time" => float 1438539744.8256
        "stop_memory" => integer 2479704
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8257
        "start_memory" => integer 2495296
        "stop_time" => float 1438539744.8257
        "stop_memory" => integer 2495872
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8261
        "start_memory" => integer 2503184
        "stop_time" => float 1438539744.8261
        "stop_memory" => integer 2503752
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8262
        "start_memory" => integer 2507224
        "stop_time" => float 1438539744.8262
        "stop_memory" => integer 2507816
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8271
        "start_memory" => integer 2557312
        "stop_time" => float 1438539744.8271
        "stop_memory" => integer 2558408
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8272
        "start_memory" => integer 2561912
        "stop_time" => float 1438539744.8272
        "stop_memory" => integer 2562512
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8311
        "start_memory" => integer 2581896
        "stop_time" => float 1438539744.8312
        "stop_memory" => integer 2582456
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8312
        "start_memory" => integer 2585952
        "stop_time" => float 1438539744.8313
        "stop_memory" => integer 2586544
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8326
        "start_memory" => integer 2601704
        "stop_time" => float 1438539744.8327
        "stop_memory" => integer 2602240
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8327
        "start_memory" => integer 2605648
        "stop_time" => float 1438539744.8328
        "stop_memory" => integer 2606224
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8345
        "start_memory" => integer 2612944
        "stop_time" => float 1438539744.8346
        "stop_memory" => integer 2613560
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8351
        "start_memory" => integer 2621024
        "stop_time" => float 1438539744.8352
        "stop_memory" => integer 2621616
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8355
        "start_memory" => integer 2646232
        "stop_time" => float 1438539744.8355
        "stop_memory" => integer 2646736
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8367
        "start_memory" => integer 2648016
        "stop_time" => float 1438539744.8367
        "stop_memory" => integer 2648608
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8381
        "start_memory" => integer 2667392
        "stop_time" => float 1438539744.8382
        "stop_memory" => integer 2667952
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8382
        "start_memory" => integer 2671448
        "stop_time" => float 1438539744.8383
        "stop_memory" => integer 2672040
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8406
        "start_memory" => integer 2683456
        "stop_time" => float 1438539744.8407
        "stop_memory" => integer 2684040
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8418
        "start_memory" => integer 2688040
        "stop_time" => float 1438539744.8419
        "stop_memory" => integer 2688592
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.842
        "start_memory" => integer 2692024
        "stop_time" => float 1438539744.8421
        "stop_memory" => integer 2692608
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8425
        "start_memory" => integer 2709976
        "stop_time" => float 1438539744.8426
        "stop_memory" => integer 2710552
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8426
        "start_memory" => integer 2714016
        "stop_time" => float 1438539744.8427
        "stop_memory" => integer 2714608
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8444
        "start_memory" => integer 2800840
        "stop_time" => float 1438539744.8444
        "stop_memory" => integer 2801440
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8445
        "start_memory" => integer 2804992
        "stop_time" => float 1438539744.8446
        "stop_memory" => integer 2805584
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8446
        "start_memory" => integer 2809312
        "stop_time" => float 1438539744.8447
        "stop_memory" => integer 2809872
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8451
        "start_memory" => integer 2825688
        "stop_time" => float 1438539744.8452
        "stop_memory" => integer 2826296
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8453
        "start_memory" => integer 2829848
        "stop_time" => float 1438539744.8453
        "stop_memory" => integer 2830456
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8463
        "start_memory" => integer 2835496
        "stop_time" => float 1438539744.8463
        "stop_memory" => integer 2836064
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8464
        "start_memory" => integer 2839568
        "stop_time" => float 1438539744.8465
        "stop_memory" => integer 2840168
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8475
        "start_memory" => integer 2927616
        "stop_time" => float 1438539744.8475
        "stop_memory" => integer 2928208
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8476
        "start_memory" => integer 2931760
        "stop_time" => float 1438539744.8476
        "stop_memory" => integer 2932368
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8477
        "start_memory" => integer 2944400
        "stop_time" => float 1438539744.8478
        "stop_memory" => integer 2944968
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8479
        "start_memory" => integer 2948488
        "stop_time" => float 1438539744.8479
        "stop_memory" => integer 2949112
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8487
        "start_memory" => integer 2992496
        "stop_time" => float 1438539744.8487
        "stop_memory" => integer 2993072
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8488
        "start_memory" => integer 2996592
        "stop_time" => float 1438539744.8488
        "stop_memory" => integer 2997192
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8494
        "start_memory" => integer 3036664
        "stop_time" => float 1438539744.8495
        "stop_memory" => integer 3037240
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8496
        "start_memory" => integer 3040744
        "stop_time" => float 1438539744.8496
        "stop_memory" => integer 3041344
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8505
        "start_memory" => integer 3068496
        "stop_time" => float 1438539744.8505
        "stop_memory" => integer 3069088
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8506
        "start_memory" => integer 3072648
        "stop_time" => float 1438539744.8506
        "stop_memory" => integer 3073256
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8513
        "start_memory" => integer 3104504
        "stop_time" => float 1438539744.8513
        "stop_memory" => integer 3105104
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8514
        "start_memory" => integer 3108712
        "stop_time" => float 1438539744.8515
        "stop_memory" => integer 3109328
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8516
        "start_memory" => integer 3122504
        "stop_time" => float 1438539744.8517
        "stop_memory" => integer 3123096
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8517
        "start_memory" => integer 3127736
        "stop_time" => float 1438539744.8518
        "stop_memory" => integer 3128352
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8525
        "start_memory" => integer 3178936
        "stop_time" => float 1438539744.8526
        "stop_memory" => integer 3179528
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8526
        "start_memory" => integer 3183136
        "stop_time" => float 1438539744.8527
        "stop_memory" => integer 3183752
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8534
        "start_memory" => integer 3215640
        "stop_time" => float 1438539744.8534
        "stop_memory" => integer 3216232
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8535
        "start_memory" => integer 3219832
        "stop_time" => float 1438539744.8536
        "stop_memory" => integer 3220448
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8544
        "start_memory" => integer 3243744
        "stop_time" => float 1438539744.8545
        "stop_memory" => integer 3244336
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8545
        "start_memory" => integer 3247944
        "stop_time" => float 1438539744.8546
        "stop_memory" => integer 3248560
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8555
        "start_memory" => integer 3316400
        "stop_time" => float 1438539744.8555
        "stop_memory" => integer 3316992
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8556
        "start_memory" => integer 3320600
        "stop_time" => float 1438539744.8557
        "stop_memory" => integer 3321216
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8572
        "start_memory" => integer 3356992
        "stop_time" => float 1438539744.8573
        "stop_memory" => integer 3357568
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8574
        "start_memory" => integer 3361128
        "stop_time" => float 1438539744.8574
        "stop_memory" => integer 3361736
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.858
        "start_memory" => integer 3380064
        "stop_time" => float 1438539744.8581
        "stop_memory" => integer 3380600
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8582
        "start_memory" => integer 3384024
        "stop_time" => float 1438539744.8583
        "stop_memory" => integer 3384592
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8592
        "start_memory" => integer 3450416
        "stop_time" => float 1438539744.8592
        "stop_memory" => integer 3451000
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8593
        "start_memory" => integer 3454456
        "stop_time" => float 1438539744.8593
        "stop_memory" => integer 3455032
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.862
        "start_memory" => integer 3468664
        "stop_time" => float 1438539744.8621
        "stop_memory" => integer 3469224
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8622
        "start_memory" => integer 3472656
        "stop_time" => float 1438539744.8622
        "stop_memory" => integer 3473240
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8642
        "start_memory" => integer 3495040
        "stop_time" => float 1438539744.8642
        "stop_memory" => integer 3495600
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8643
        "start_memory" => integer 3499024
        "stop_time" => float 1438539744.8644
        "stop_memory" => integer 3499592
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8649
        "start_memory" => integer 3522672
        "stop_time" => float 1438539744.865
        "stop_memory" => integer 3523240
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8651
        "start_memory" => integer 3526664
        "stop_time" => float 1438539744.8651
        "stop_memory" => integer 3527232
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8656
        "start_memory" => integer 3544672
        "stop_time" => float 1438539744.8657
        "stop_memory" => integer 3545240
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8657
        "start_memory" => integer 3548664
        "stop_time" => float 1438539744.8658
        "stop_memory" => integer 3549232
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8668
        "start_memory" => integer 3595864
        "stop_time" => float 1438539744.8669
        "stop_memory" => integer 3596432
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8669
        "start_memory" => integer 3599872
        "stop_time" => float 1438539744.867
        "stop_memory" => integer 3600456
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8685
        "start_memory" => integer 3614968
        "stop_time" => float 1438539744.8686
        "stop_memory" => integer 3615528
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8687
        "start_memory" => integer 3618976
        "stop_time" => float 1438539744.8687
        "stop_memory" => integer 3619544
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8699
        "start_memory" => integer 3632520
        "stop_time" => float 1438539744.8699
        "stop_memory" => integer 3634128
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.87
        "start_memory" => integer 3637608
        "stop_time" => float 1438539744.87
        "stop_memory" => integer 3638184
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8711
        "start_memory" => integer 3717112
        "stop_time" => float 1438539744.8711
        "stop_memory" => integer 3717688
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8712
        "start_memory" => integer 3721152
        "stop_time" => float 1438539744.8712
        "stop_memory" => integer 3721744
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8732
        "start_memory" => integer 3820696
        "stop_time" => float 1438539744.8733
        "stop_memory" => integer 3821248
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8734
        "start_memory" => integer 3824704
        "stop_time" => float 1438539744.8735
        "stop_memory" => integer 3825288
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8763
        "start_memory" => integer 3858200
        "stop_time" => float 1438539744.8764
        "stop_memory" => integer 3858792
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8765
        "start_memory" => integer 3862288
        "stop_time" => float 1438539744.8765
        "stop_memory" => integer 3862888
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8771
        "start_memory" => integer 3888496
        "stop_time" => float 1438539744.8772
        "stop_memory" => integer 3889088
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8772
        "start_memory" => integer 3892664
        "stop_time" => float 1438539744.8773
        "stop_memory" => integer 3893272
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8783
        "start_memory" => integer 3911976
        "stop_time" => float 1438539744.8783
        "stop_memory" => integer 3912544
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8784
        "start_memory" => integer 3916072
        "stop_time" => float 1438539744.8785
        "stop_memory" => integer 3916672
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.88
        "start_memory" => integer 3935392
        "stop_time" => float 1438539744.88
        "stop_memory" => integer 3935984
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8815
        "start_memory" => integer 3944064
        "stop_time" => float 1438539744.8815
        "stop_memory" => integer 3944656
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8853
        "start_memory" => integer 3971024
        "stop_time" => float 1438539744.8854
        "stop_memory" => integer 3971584
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8855
        "start_memory" => integer 3977248
        "stop_time" => float 1438539744.8856
        "stop_memory" => integer 3977752
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8866
        "start_memory" => integer 3978104
        "stop_time" => float 1438539744.8867
        "stop_memory" => integer 3978680
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8877
        "start_memory" => integer 3983032
        "stop_time" => float 1438539744.8878
        "stop_memory" => integer 3983608
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8888
        "start_memory" => integer 3992096
        "stop_time" => float 1438539744.8889
        "stop_memory" => integer 3992704
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8892
        "start_memory" => integer 4000048
        "stop_time" => float 1438539744.8893
        "stop_memory" => integer 4000624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8896
        "start_memory" => integer 4003016
        "stop_time" => float 1438539744.8897
        "stop_memory" => integer 4003600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8899
        "start_memory" => integer 4010536
        "stop_time" => float 1438539744.8899
        "stop_memory" => integer 4011120
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8901
        "start_memory" => integer 4018032
        "stop_time" => float 1438539744.8902
        "stop_memory" => integer 4018584
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8902
        "start_memory" => integer 4022024
        "stop_time" => float 1438539744.8903
        "stop_memory" => integer 4022608
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8907
        "start_memory" => integer 4028824
        "stop_time" => float 1438539744.8908
        "stop_memory" => integer 4029416
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8908
        "start_memory" => integer 4036600
        "stop_time" => float 1438539744.8909
        "stop_memory" => integer 4037152
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8909
        "start_memory" => integer 4040592
        "stop_time" => float 1438539744.891
        "stop_memory" => integer 4041176
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.893
        "start_memory" => integer 4256192
        "stop_time" => float 1438539744.893
        "stop_memory" => integer 4256784
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8937
        "start_memory" => integer 4317232
        "stop_time" => float 1438539744.8937
        "stop_memory" => integer 4317816
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8944
        "start_memory" => integer 4349504
        "stop_time" => float 1438539744.8945
        "stop_memory" => integer 4350072
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8948
        "start_memory" => integer 4373344
        "stop_time" => float 1438539744.8949
        "stop_memory" => integer 4373920
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8953
        "start_memory" => integer 4399672
        "stop_time" => float 1438539744.8953
        "stop_memory" => integer 4400264
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8957
        "start_memory" => integer 4424288
        "stop_time" => float 1438539744.8958
        "stop_memory" => integer 4424824
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8958
        "start_memory" => integer 4428232
        "stop_time" => float 1438539744.8959
        "stop_memory" => integer 4428808
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8965
        "start_memory" => integer 4435464
        "stop_time" => float 1438539744.8966
        "stop_memory" => integer 4436048
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8967
        "start_memory" => integer 4439504
        "stop_time" => float 1438539744.8967
        "stop_memory" => integer 4440080
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8973
        "start_memory" => integer 4464952
        "stop_time" => float 1438539744.8974
        "stop_memory" => integer 4465528
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8974
        "start_memory" => integer 4468984
        "stop_time" => float 1438539744.8975
        "stop_memory" => integer 4469576
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8979
        "start_memory" => integer 4480280
        "stop_time" => float 1438539744.8979
        "stop_memory" => integer 4480864
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.898
        "start_memory" => integer 4484368
        "stop_time" => float 1438539744.8981
        "stop_memory" => integer 4484952
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8983
        "start_memory" => integer 4495280
        "stop_time" => float 1438539744.8983
        "stop_memory" => integer 4495864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.8984
        "start_memory" => integer 4499392
        "stop_time" => float 1438539744.8984
        "stop_memory" => integer 4499976
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9054
        "start_memory" => integer 4512432
        "stop_time" => float 1438539744.9055
        "stop_memory" => integer 4513032
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9056
        "start_memory" => integer 4516592
        "stop_time" => float 1438539744.9056
        "stop_memory" => integer 4517208
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9059
        "start_memory" => integer 4522520
        "stop_time" => float 1438539744.906
        "stop_memory" => integer 4523088
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9061
        "start_memory" => integer 4526600
        "stop_time" => float 1438539744.9062
        "stop_memory" => integer 4527200
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9063
        "start_memory" => integer 4533144
        "stop_time" => float 1438539744.9064
        "stop_memory" => integer 4533720
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9065
        "start_memory" => integer 4537248
        "stop_time" => float 1438539744.9065
        "stop_memory" => integer 4537832
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9076
        "start_memory" => integer 4602952
        "stop_time" => float 1438539744.9077
        "stop_memory" => integer 4603552
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9078
        "start_memory" => integer 4607112
        "stop_time" => float 1438539744.9078
        "stop_memory" => integer 4607720
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9084
        "start_memory" => integer 4624080
        "stop_time" => float 1438539744.9084
        "stop_memory" => integer 4624664
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9085
        "start_memory" => integer 4628240
        "stop_time" => float 1438539744.9086
        "stop_memory" => integer 4628848
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9091
        "start_memory" => integer 4644040
        "stop_time" => float 1438539744.9091
        "stop_memory" => integer 4644608
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9092
        "start_memory" => integer 4648128
        "stop_time" => float 1438539744.9093
        "stop_memory" => integer 4648728
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9098
        "start_memory" => integer 4664912
        "stop_time" => float 1438539744.9098
        "stop_memory" => integer 4665472
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9099
        "start_memory" => integer 4668944
        "stop_time" => float 1438539744.91
        "stop_memory" => integer 4669536
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9101
        "start_memory" => integer 4674496
        "stop_time" => float 1438539744.9101
        "stop_memory" => integer 4675064
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9102
        "start_memory" => integer 4678560
        "stop_time" => float 1438539744.9103
        "stop_memory" => integer 4679152
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9109
        "start_memory" => integer 4688864
        "stop_time" => float 1438539744.9109
        "stop_memory" => integer 4689448
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.911
        "start_memory" => integer 4692976
        "stop_time" => float 1438539744.9111
        "stop_memory" => integer 4693576
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9117
        "start_memory" => integer 4697896
        "stop_time" => float 1438539744.9117
        "stop_memory" => integer 4698472
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9118
        "start_memory" => integer 4701976
        "stop_time" => float 1438539744.9119
        "stop_memory" => integer 4702576
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9124
        "start_memory" => integer 4712568
        "stop_time" => float 1438539744.9124
        "stop_memory" => integer 4713144
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9125
        "start_memory" => integer 4716648
        "stop_time" => float 1438539744.9126
        "stop_memory" => integer 4717248
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9133
        "start_memory" => integer 4742960
        "stop_time" => float 1438539744.9133
        "stop_memory" => integer 4743552
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9134
        "start_memory" => integer 4747104
        "stop_time" => float 1438539744.9135
        "stop_memory" => integer 4747696
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9146
        "start_memory" => integer 4758784
        "stop_time" => float 1438539744.9147
        "stop_memory" => integer 4759376
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9148
        "start_memory" => integer 4762936
        "stop_time" => float 1438539744.9149
        "stop_memory" => integer 4763544
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9162
        "start_memory" => integer 4773072
        "stop_time" => float 1438539744.9163
        "stop_memory" => integer 4773640
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9164
        "start_memory" => integer 4777160
        "stop_time" => float 1438539744.9164
        "stop_memory" => integer 4777760
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9169
        "start_memory" => integer 4795544
        "stop_time" => float 1438539744.917
        "stop_memory" => integer 4796136
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9171
        "start_memory" => integer 4799696
        "stop_time" => float 1438539744.9172
        "stop_memory" => integer 4800304
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9177
        "start_memory" => integer 4817216
        "stop_time" => float 1438539744.9177
        "stop_memory" => integer 4817800
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9178
        "start_memory" => integer 4821376
        "stop_time" => float 1438539744.9179
        "stop_memory" => integer 4821984
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9185
        "start_memory" => integer 4837552
        "stop_time" => float 1438539744.9185
        "stop_memory" => integer 4838136
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9186
        "start_memory" => integer 4841696
        "stop_time" => float 1438539744.9187
        "stop_memory" => integer 4842304
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9193
        "start_memory" => integer 4858984
        "stop_time" => float 1438539744.9193
        "stop_memory" => integer 4859552
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9194
        "start_memory" => integer 4863080
        "stop_time" => float 1438539744.9194
        "stop_memory" => integer 4863680
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.92
        "start_memory" => integer 4881272
        "stop_time" => float 1438539744.9201
        "stop_memory" => integer 4881848
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9202
        "start_memory" => integer 4885352
        "stop_time" => float 1438539744.9203
        "stop_memory" => integer 4885952
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9207
        "start_memory" => integer 4892984
        "stop_time" => float 1438539744.9207
        "stop_memory" => integer 4893560
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9208
        "start_memory" => integer 4897072
        "stop_time" => float 1438539744.9209
        "stop_memory" => integer 4897672
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9215
        "start_memory" => integer 4907920
        "stop_time" => float 1438539744.9215
        "stop_memory" => integer 4908512
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9216
        "start_memory" => integer 4912088
        "stop_time" => float 1438539744.9217
        "stop_memory" => integer 4912696
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9229
        "start_memory" => integer 4921264
        "stop_time" => float 1438539744.923
        "stop_memory" => integer 4921848
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9231
        "start_memory" => integer 4925424
        "stop_time" => float 1438539744.9231
        "stop_memory" => integer 4926032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9242
        "start_memory" => integer 4933640
        "stop_time" => float 1438539744.9243
        "stop_memory" => integer 4934208
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9244
        "start_memory" => integer 4937736
        "stop_time" => float 1438539744.9245
        "stop_memory" => integer 4938336
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.925
        "start_memory" => integer 4943880
        "stop_time" => float 1438539744.9251
        "stop_memory" => integer 4944456
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9251
        "start_memory" => integer 4947984
        "stop_time" => float 1438539744.9252
        "stop_memory" => integer 4948584
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9274
        "start_memory" => integer 4957080
        "stop_time" => float 1438539744.9275
        "stop_memory" => integer 4957656
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9276
        "start_memory" => integer 4961160
        "stop_time" => float 1438539744.9276
        "stop_memory" => integer 4961760
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9294
        "start_memory" => integer 5007520
        "stop_time" => float 1438539744.9295
        "stop_memory" => integer 5008064
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9296
        "start_memory" => integer 5011496
        "stop_time" => float 1438539744.9297
        "stop_memory" => integer 5012080
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9331
        "start_memory" => integer 5027120
        "stop_time" => float 1438539744.9332
        "stop_memory" => integer 5027680
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9333
        "start_memory" => integer 5031144
        "stop_time" => float 1438539744.9334
        "stop_memory" => integer 5031728
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.934
        "start_memory" => integer 5050272
        "stop_time" => float 1438539744.934
        "stop_memory" => integer 5050832
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9341
        "start_memory" => integer 5054264
        "stop_time" => float 1438539744.9342
        "stop_memory" => integer 5054848
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.935
        "start_memory" => integer 5099312
        "stop_time" => float 1438539744.9351
        "stop_memory" => integer 5099888
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9352
        "start_memory" => integer 5103368
        "stop_time" => float 1438539744.9353
        "stop_memory" => integer 5103960
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9358
        "start_memory" => integer 5124320
        "stop_time" => float 1438539744.9359
        "stop_memory" => integer 5124904
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9361
        "start_memory" => integer 5130464
        "stop_time" => float 1438539744.9361
        "stop_memory" => integer 5131064
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9374
        "start_memory" => integer 5181560
        "stop_time" => float 1438539744.9374
        "stop_memory" => integer 5182120
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9375
        "start_memory" => integer 5185600
        "stop_time" => float 1438539744.9376
        "stop_memory" => integer 5186192
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9383
        "start_memory" => integer 5208456
        "stop_time" => float 1438539744.9383
        "stop_memory" => integer 5209008
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9384
        "start_memory" => integer 5212432
        "stop_time" => float 1438539744.9385
        "stop_memory" => integer 5213000
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9398
        "start_memory" => integer 5285312
        "stop_time" => float 1438539744.9399
        "stop_memory" => integer 5285880
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.94
        "start_memory" => integer 5289312
        "stop_time" => float 1438539744.9401
        "stop_memory" => integer 5289896
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.945
        "start_memory" => integer 5312688
        "stop_time" => float 1438539744.9452
        "stop_memory" => integer 5313248
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9452
        "start_memory" => integer 5316712
        "stop_time" => float 1438539744.9453
        "stop_memory" => integer 5317296
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9478
        "start_memory" => integer 5462144
        "stop_time" => float 1438539744.9479
        "stop_memory" => integer 5462720
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.948
        "start_memory" => integer 5466248
        "stop_time" => float 1438539744.9481
        "stop_memory" => integer 5466840
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.949
        "start_memory" => integer 5481584
        "stop_time" => float 1438539744.9491
        "stop_memory" => integer 5482168
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1438539744.9494
        "start_memory" => integer 5450416
        "stop_time" => float 1438539744.9495
        "stop_memory" => integer 5452864
    )
)

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