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 1469758076.9058
        "start_memory" => integer 901408
        "stop_time" => float 1469758077.1353
        "stop_memory" => integer 5455416
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9058
        "start_memory" => integer 903712
        "stop_time" => float 1469758076.9059
        "stop_memory" => integer 904400
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9064
        "start_memory" => integer 981112
        "stop_time" => float 1469758076.9065
        "stop_memory" => integer 981672
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9066
        "start_memory" => integer 985688
        "stop_time" => float 1469758076.9066
        "stop_memory" => integer 986280
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9067
        "start_memory" => integer 993912
        "stop_time" => float 1469758076.9068
        "stop_memory" => integer 994464
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9069
        "start_memory" => integer 998104
        "stop_time" => float 1469758076.9069
        "stop_memory" => integer 998688
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.907
        "start_memory" => integer 1001896
        "stop_time" => float 1469758076.9071
        "stop_memory" => integer 1002488
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9096
        "start_memory" => integer 1323072
        "stop_time" => float 1469758076.9097
        "stop_memory" => integer 1323608
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9098
        "start_memory" => integer 1327016
        "stop_time" => float 1469758076.9099
        "stop_memory" => integer 1327656
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9101
        "start_memory" => integer 1346432
        "stop_time" => float 1469758076.9102
        "stop_memory" => integer 1347016
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9102
        "start_memory" => integer 1350432
        "stop_time" => float 1469758076.9103
        "stop_memory" => integer 1351008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9109
        "start_memory" => integer 1450352
        "stop_time" => float 1469758076.9109
        "stop_memory" => integer 1450952
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.911
        "start_memory" => integer 1454456
        "stop_time" => float 1469758076.9111
        "stop_memory" => integer 1455056
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9115
        "start_memory" => integer 1567952
        "stop_time" => float 1469758076.9115
        "stop_memory" => integer 1568496
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9116
        "start_memory" => integer 1571920
        "stop_time" => float 1469758076.9116
        "stop_memory" => integer 1572488
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9119
        "start_memory" => integer 1606536
        "stop_time" => float 1469758076.912
        "stop_memory" => integer 1607136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.912
        "start_memory" => integer 1609672
        "stop_time" => float 1469758076.9121
        "stop_memory" => integer 1610384
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9121
        "start_memory" => integer 1613896
        "stop_time" => float 1469758076.9122
        "stop_memory" => integer 1614496
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9123
        "start_memory" => integer 1616184
        "stop_time" => float 1469758076.9123
        "stop_memory" => integer 1616784
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9124
        "start_memory" => integer 1620304
        "stop_time" => float 1469758076.9124
        "stop_memory" => integer 1620880
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9127
        "start_memory" => integer 1650304
        "stop_time" => float 1469758076.9128
        "stop_memory" => integer 1650864
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9128
        "start_memory" => integer 1654360
        "stop_time" => float 1469758076.9129
        "stop_memory" => integer 1654952
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9134
        "start_memory" => integer 1716152
        "stop_time" => float 1469758076.9134
        "stop_memory" => integer 1716704
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9135
        "start_memory" => integer 1720152
        "stop_time" => float 1469758076.9135
        "stop_memory" => integer 1720720
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9144
        "start_memory" => integer 1778512
        "stop_time" => float 1469758076.9145
        "stop_memory" => integer 1779128
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9944
        "start_memory" => integer 1817072
        "stop_time" => float 1469758076.9944
        "stop_memory" => integer 1817640
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9946
        "start_memory" => integer 1821064
        "stop_time" => float 1469758076.9946
        "stop_memory" => integer 1821648
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9953
        "start_memory" => integer 1855712
        "stop_time" => float 1469758076.9953
        "stop_memory" => integer 1856288
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9954
        "start_memory" => integer 1859768
        "stop_time" => float 1469758076.9954
        "stop_memory" => integer 1860360
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9959
        "start_memory" => integer 1878976
        "stop_time" => float 1469758076.9959
        "stop_memory" => integer 1879544
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.996
        "start_memory" => integer 1883008
        "stop_time" => float 1469758076.996
        "stop_memory" => integer 1883600
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9966
        "start_memory" => integer 1930912
        "stop_time" => float 1469758076.9966
        "stop_memory" => integer 1931512
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9967
        "start_memory" => integer 1943048
        "stop_time" => float 1469758076.9968
        "stop_memory" => integer 1943880
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9969
        "start_memory" => integer 1947392
        "stop_time" => float 1469758076.9969
        "stop_memory" => integer 1947976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9973
        "start_memory" => integer 1986000
        "stop_time" => float 1469758076.9974
        "stop_memory" => integer 1986600
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9976
        "start_memory" => integer 1998664
        "stop_time" => float 1469758076.9976
        "stop_memory" => integer 1999240
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9979
        "start_memory" => integer 2026240
        "stop_time" => float 1469758076.998
        "stop_memory" => integer 2026840
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9981
        "start_memory" => integer 2035656
        "stop_time" => float 1469758076.9982
        "stop_memory" => integer 2036232
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9984
        "start_memory" => integer 2049368
        "stop_time" => float 1469758076.9984
        "stop_memory" => integer 2049968
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9986
        "start_memory" => integer 2056984
        "stop_time" => float 1469758076.9986
        "stop_memory" => integer 2057576
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9988
        "start_memory" => integer 2070864
        "stop_time" => float 1469758076.9989
        "stop_memory" => integer 2071456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9991
        "start_memory" => integer 2085096
        "stop_time" => float 1469758076.9991
        "stop_memory" => integer 2085688
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9993
        "start_memory" => integer 2095168
        "stop_time" => float 1469758076.9993
        "stop_memory" => integer 2095760
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9996
        "start_memory" => integer 2104432
        "stop_time" => float 1469758076.9996
        "stop_memory" => integer 2105024
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758076.9998
        "start_memory" => integer 2150344
        "stop_time" => float 1469758076.9998
        "stop_memory" => integer 2150920
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0001
        "start_memory" => integer 2173848
        "stop_time" => float 1469758077.0001
        "stop_memory" => integer 2174448
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0003
        "start_memory" => integer 2187744
        "stop_time" => float 1469758077.0004
        "stop_memory" => integer 2188320
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0006
        "start_memory" => integer 2207520
        "stop_time" => float 1469758077.0006
        "stop_memory" => integer 2208104
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0008
        "start_memory" => integer 2221744
        "stop_time" => float 1469758077.0009
        "stop_memory" => integer 2222312
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0009
        "start_memory" => integer 2225768
        "stop_time" => float 1469758077.0009
        "stop_memory" => integer 2226344
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0082
        "start_memory" => integer 2316832
        "stop_time" => float 1469758077.0082
        "stop_memory" => integer 2317408
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0084
        "start_memory" => integer 2320912
        "stop_time" => float 1469758077.0084
        "stop_memory" => integer 2321504
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0117
        "start_memory" => integer 2340592
        "stop_time" => float 1469758077.0117
        "stop_memory" => integer 2341176
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0119
        "start_memory" => integer 2344704
        "stop_time" => float 1469758077.0119
        "stop_memory" => integer 2345304
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0154
        "start_memory" => integer 2364488
        "stop_time" => float 1469758077.0154
        "stop_memory" => integer 2365048
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0156
        "start_memory" => integer 2368528
        "stop_time" => float 1469758077.0156
        "stop_memory" => integer 2369120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0162
        "start_memory" => integer 2422760
        "stop_time" => float 1469758077.0162
        "stop_memory" => integer 2423360
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0197
        "start_memory" => integer 2430696
        "stop_time" => float 1469758077.0198
        "stop_memory" => integer 2431272
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0199
        "start_memory" => integer 2434776
        "stop_time" => float 1469758077.0199
        "stop_memory" => integer 2435376
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0306
        "start_memory" => integer 2474992
        "stop_time" => float 1469758077.0307
        "stop_memory" => integer 2475568
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0308
        "start_memory" => integer 2479096
        "stop_time" => float 1469758077.0308
        "stop_memory" => integer 2479696
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.031
        "start_memory" => integer 2495328
        "stop_time" => float 1469758077.031
        "stop_memory" => integer 2495904
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0315
        "start_memory" => integer 2503216
        "stop_time" => float 1469758077.0315
        "stop_memory" => integer 2503784
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0316
        "start_memory" => integer 2507256
        "stop_time" => float 1469758077.0316
        "stop_memory" => integer 2507848
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0324
        "start_memory" => integer 2557272
        "stop_time" => float 1469758077.0324
        "stop_memory" => integer 2558368
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0325
        "start_memory" => integer 2561872
        "stop_time" => float 1469758077.0326
        "stop_memory" => integer 2562472
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.037
        "start_memory" => integer 2581856
        "stop_time" => float 1469758077.0371
        "stop_memory" => integer 2582416
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0374
        "start_memory" => integer 2585888
        "stop_time" => float 1469758077.0374
        "stop_memory" => integer 2586480
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0385
        "start_memory" => integer 2601664
        "stop_time" => float 1469758077.0386
        "stop_memory" => integer 2602200
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0386
        "start_memory" => integer 2605608
        "stop_time" => float 1469758077.0387
        "stop_memory" => integer 2606184
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0407
        "start_memory" => integer 2612904
        "stop_time" => float 1469758077.0408
        "stop_memory" => integer 2613520
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0413
        "start_memory" => integer 2620984
        "stop_time" => float 1469758077.0414
        "stop_memory" => integer 2621576
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0417
        "start_memory" => integer 2646192
        "stop_time" => float 1469758077.0417
        "stop_memory" => integer 2646696
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.043
        "start_memory" => integer 2647976
        "stop_time" => float 1469758077.043
        "stop_memory" => integer 2648568
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0444
        "start_memory" => integer 2667352
        "stop_time" => float 1469758077.0444
        "stop_memory" => integer 2667912
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0445
        "start_memory" => integer 2671408
        "stop_time" => float 1469758077.0446
        "stop_memory" => integer 2672000
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.047
        "start_memory" => integer 2683416
        "stop_time" => float 1469758077.047
        "stop_memory" => integer 2684000
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0481
        "start_memory" => integer 2688000
        "stop_time" => float 1469758077.0482
        "stop_memory" => integer 2688552
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0482
        "start_memory" => integer 2691984
        "stop_time" => float 1469758077.0483
        "stop_memory" => integer 2692568
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0489
        "start_memory" => integer 2709952
        "stop_time" => float 1469758077.0489
        "stop_memory" => integer 2710528
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.049
        "start_memory" => integer 2713992
        "stop_time" => float 1469758077.0491
        "stop_memory" => integer 2714584
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0513
        "start_memory" => integer 2800808
        "stop_time" => float 1469758077.0513
        "stop_memory" => integer 2801408
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0514
        "start_memory" => integer 2804960
        "stop_time" => float 1469758077.0514
        "stop_memory" => integer 2805552
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0515
        "start_memory" => integer 2809280
        "stop_time" => float 1469758077.0516
        "stop_memory" => integer 2809840
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0519
        "start_memory" => integer 2826688
        "stop_time" => float 1469758077.052
        "stop_memory" => integer 2827296
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0521
        "start_memory" => integer 2830848
        "stop_time" => float 1469758077.0521
        "stop_memory" => integer 2831456
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0533
        "start_memory" => integer 2836488
        "stop_time" => float 1469758077.0533
        "stop_memory" => integer 2837056
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0534
        "start_memory" => integer 2840560
        "stop_time" => float 1469758077.0534
        "stop_memory" => integer 2841160
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0544
        "start_memory" => integer 2928576
        "stop_time" => float 1469758077.0544
        "stop_memory" => integer 2929168
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0545
        "start_memory" => integer 2932720
        "stop_time" => float 1469758077.0545
        "stop_memory" => integer 2933328
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0547
        "start_memory" => integer 2945360
        "stop_time" => float 1469758077.0547
        "stop_memory" => integer 2945928
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0548
        "start_memory" => integer 2949448
        "stop_time" => float 1469758077.0548
        "stop_memory" => integer 2950072
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0556
        "start_memory" => integer 2993456
        "stop_time" => float 1469758077.0556
        "stop_memory" => integer 2994032
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0557
        "start_memory" => integer 2997552
        "stop_time" => float 1469758077.0557
        "stop_memory" => integer 2998152
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0565
        "start_memory" => integer 3037624
        "stop_time" => float 1469758077.0565
        "stop_memory" => integer 3038200
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0566
        "start_memory" => integer 3041704
        "stop_time" => float 1469758077.0566
        "stop_memory" => integer 3042304
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0574
        "start_memory" => integer 3069456
        "stop_time" => float 1469758077.0574
        "stop_memory" => integer 3070048
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0575
        "start_memory" => integer 3073608
        "stop_time" => float 1469758077.0575
        "stop_memory" => integer 3074216
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0584
        "start_memory" => integer 3105464
        "stop_time" => float 1469758077.0584
        "stop_memory" => integer 3106064
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0585
        "start_memory" => integer 3109672
        "stop_time" => float 1469758077.0585
        "stop_memory" => integer 3110288
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0587
        "start_memory" => integer 3123464
        "stop_time" => float 1469758077.0587
        "stop_memory" => integer 3124056
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0588
        "start_memory" => integer 3128696
        "stop_time" => float 1469758077.0589
        "stop_memory" => integer 3129312
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0596
        "start_memory" => integer 3179896
        "stop_time" => float 1469758077.0597
        "stop_memory" => integer 3180488
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0597
        "start_memory" => integer 3184096
        "stop_time" => float 1469758077.0598
        "stop_memory" => integer 3184712
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0605
        "start_memory" => integer 3216600
        "stop_time" => float 1469758077.0605
        "stop_memory" => integer 3217192
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0606
        "start_memory" => integer 3220792
        "stop_time" => float 1469758077.0606
        "stop_memory" => integer 3221408
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0613
        "start_memory" => integer 3244688
        "stop_time" => float 1469758077.0613
        "stop_memory" => integer 3245280
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0614
        "start_memory" => integer 3248888
        "stop_time" => float 1469758077.0614
        "stop_memory" => integer 3249504
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0623
        "start_memory" => integer 3317344
        "stop_time" => float 1469758077.0623
        "stop_memory" => integer 3317936
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0624
        "start_memory" => integer 3321544
        "stop_time" => float 1469758077.0624
        "stop_memory" => integer 3322160
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0639
        "start_memory" => integer 3357936
        "stop_time" => float 1469758077.064
        "stop_memory" => integer 3358512
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.064
        "start_memory" => integer 3362072
        "stop_time" => float 1469758077.0641
        "stop_memory" => integer 3362680
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0647
        "start_memory" => integer 3381008
        "stop_time" => float 1469758077.0648
        "stop_memory" => integer 3381544
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0648
        "start_memory" => integer 3384968
        "stop_time" => float 1469758077.0649
        "stop_memory" => integer 3385536
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0657
        "start_memory" => integer 3451360
        "stop_time" => float 1469758077.0657
        "stop_memory" => integer 3451944
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0658
        "start_memory" => integer 3455400
        "stop_time" => float 1469758077.0658
        "stop_memory" => integer 3455976
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0693
        "start_memory" => integer 3469608
        "stop_time" => float 1469758077.0694
        "stop_memory" => integer 3470168
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0695
        "start_memory" => integer 3473600
        "stop_time" => float 1469758077.0695
        "stop_memory" => integer 3474184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0715
        "start_memory" => integer 3495984
        "stop_time" => float 1469758077.0716
        "stop_memory" => integer 3496544
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0717
        "start_memory" => integer 3499968
        "stop_time" => float 1469758077.0717
        "stop_memory" => integer 3500536
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0723
        "start_memory" => integer 3523616
        "stop_time" => float 1469758077.0723
        "stop_memory" => integer 3524184
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0724
        "start_memory" => integer 3527608
        "stop_time" => float 1469758077.0725
        "stop_memory" => integer 3528176
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0729
        "start_memory" => integer 3545616
        "stop_time" => float 1469758077.073
        "stop_memory" => integer 3546184
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0731
        "start_memory" => integer 3549608
        "stop_time" => float 1469758077.0732
        "stop_memory" => integer 3550176
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0741
        "start_memory" => integer 3596800
        "stop_time" => float 1469758077.0742
        "stop_memory" => integer 3597368
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0743
        "start_memory" => integer 3600808
        "stop_time" => float 1469758077.0743
        "stop_memory" => integer 3601392
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0759
        "start_memory" => integer 3615904
        "stop_time" => float 1469758077.0759
        "stop_memory" => integer 3616464
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.076
        "start_memory" => integer 3619912
        "stop_time" => float 1469758077.0761
        "stop_memory" => integer 3620480
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0773
        "start_memory" => integer 3633456
        "stop_time" => float 1469758077.0773
        "stop_memory" => integer 3635064
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0774
        "start_memory" => integer 3638544
        "stop_time" => float 1469758077.0774
        "stop_memory" => integer 3639120
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0784
        "start_memory" => integer 3718000
        "stop_time" => float 1469758077.0785
        "stop_memory" => integer 3718576
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0786
        "start_memory" => integer 3722040
        "stop_time" => float 1469758077.0786
        "stop_memory" => integer 3722632
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0797
        "start_memory" => integer 3821608
        "stop_time" => float 1469758077.0798
        "stop_memory" => integer 3822160
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0799
        "start_memory" => integer 3825616
        "stop_time" => float 1469758077.0799
        "stop_memory" => integer 3826200
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0816
        "start_memory" => integer 3859072
        "stop_time" => float 1469758077.0817
        "stop_memory" => integer 3859664
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0817
        "start_memory" => integer 3863184
        "stop_time" => float 1469758077.0818
        "stop_memory" => integer 3863784
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0823
        "start_memory" => integer 3889344
        "stop_time" => float 1469758077.0824
        "stop_memory" => integer 3889936
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0825
        "start_memory" => integer 3893488
        "stop_time" => float 1469758077.0825
        "stop_memory" => integer 3894096
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.084
        "start_memory" => integer 3912824
        "stop_time" => float 1469758077.084
        "stop_memory" => integer 3913392
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0841
        "start_memory" => integer 3916896
        "stop_time" => float 1469758077.0842
        "stop_memory" => integer 3917496
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0856
        "start_memory" => integer 3936224
        "stop_time" => float 1469758077.0856
        "stop_memory" => integer 3936816
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0871
        "start_memory" => integer 3945240
        "stop_time" => float 1469758077.0872
        "stop_memory" => integer 3945832
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0907
        "start_memory" => integer 3972200
        "stop_time" => float 1469758077.0907
        "stop_memory" => integer 3972760
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0908
        "start_memory" => integer 3978424
        "stop_time" => float 1469758077.0909
        "stop_memory" => integer 3978928
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.092
        "start_memory" => integer 3979280
        "stop_time" => float 1469758077.0921
        "stop_memory" => integer 3979856
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0932
        "start_memory" => integer 3984208
        "stop_time" => float 1469758077.0933
        "stop_memory" => integer 3984784
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.094
        "start_memory" => integer 3993272
        "stop_time" => float 1469758077.094
        "stop_memory" => integer 3993880
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0944
        "start_memory" => integer 4001568
        "stop_time" => float 1469758077.0945
        "stop_memory" => integer 4002144
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0948
        "start_memory" => integer 4004536
        "stop_time" => float 1469758077.0949
        "stop_memory" => integer 4005120
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.095
        "start_memory" => integer 4012416
        "stop_time" => float 1469758077.0951
        "stop_memory" => integer 4013000
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0953
        "start_memory" => integer 4020256
        "stop_time" => float 1469758077.0953
        "stop_memory" => integer 4020808
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0954
        "start_memory" => integer 4024240
        "stop_time" => float 1469758077.0955
        "stop_memory" => integer 4024824
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0961
        "start_memory" => integer 4031056
        "stop_time" => float 1469758077.0961
        "stop_memory" => integer 4031648
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0962
        "start_memory" => integer 4038824
        "stop_time" => float 1469758077.0962
        "stop_memory" => integer 4039376
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0963
        "start_memory" => integer 4042816
        "stop_time" => float 1469758077.0964
        "stop_memory" => integer 4043400
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0981
        "start_memory" => integer 4258416
        "stop_time" => float 1469758077.0981
        "stop_memory" => integer 4259008
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0987
        "start_memory" => integer 4319456
        "stop_time" => float 1469758077.0987
        "stop_memory" => integer 4320040
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0991
        "start_memory" => integer 4351728
        "stop_time" => float 1469758077.0992
        "stop_memory" => integer 4352296
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0995
        "start_memory" => integer 4375568
        "stop_time" => float 1469758077.0996
        "stop_memory" => integer 4376144
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.0999
        "start_memory" => integer 4401896
        "stop_time" => float 1469758077.0999
        "stop_memory" => integer 4402488
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1003
        "start_memory" => integer 4426512
        "stop_time" => float 1469758077.1004
        "stop_memory" => integer 4427048
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1004
        "start_memory" => integer 4430456
        "stop_time" => float 1469758077.1005
        "stop_memory" => integer 4431032
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.101
        "start_memory" => integer 4437664
        "stop_time" => float 1469758077.101
        "stop_memory" => integer 4438248
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1011
        "start_memory" => integer 4441704
        "stop_time" => float 1469758077.1011
        "stop_memory" => integer 4442280
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1016
        "start_memory" => integer 4467160
        "stop_time" => float 1469758077.1017
        "stop_memory" => integer 4467736
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1018
        "start_memory" => integer 4471192
        "stop_time" => float 1469758077.1018
        "stop_memory" => integer 4471784
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1023
        "start_memory" => integer 4482488
        "stop_time" => float 1469758077.1024
        "stop_memory" => integer 4483072
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1025
        "start_memory" => integer 4486576
        "stop_time" => float 1469758077.1025
        "stop_memory" => integer 4487160
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1027
        "start_memory" => integer 4497488
        "stop_time" => float 1469758077.1028
        "stop_memory" => integer 4498072
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1028
        "start_memory" => integer 4501600
        "stop_time" => float 1469758077.1029
        "stop_memory" => integer 4502184
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1031
        "start_memory" => integer 4514640
        "stop_time" => float 1469758077.1032
        "stop_memory" => integer 4515248
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1032
        "start_memory" => integer 4518792
        "stop_time" => float 1469758077.1033
        "stop_memory" => integer 4519400
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1034
        "start_memory" => integer 4524736
        "stop_time" => float 1469758077.1035
        "stop_memory" => integer 4525304
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1035
        "start_memory" => integer 4528816
        "stop_time" => float 1469758077.1036
        "stop_memory" => integer 4529416
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1037
        "start_memory" => integer 4535360
        "stop_time" => float 1469758077.1037
        "stop_memory" => integer 4535936
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1038
        "start_memory" => integer 4539440
        "stop_time" => float 1469758077.1039
        "stop_memory" => integer 4540024
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1047
        "start_memory" => integer 4605152
        "stop_time" => float 1469758077.1047
        "stop_memory" => integer 4605752
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1048
        "start_memory" => integer 4609312
        "stop_time" => float 1469758077.1049
        "stop_memory" => integer 4609920
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1052
        "start_memory" => integer 4626280
        "stop_time" => float 1469758077.1053
        "stop_memory" => integer 4626864
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1054
        "start_memory" => integer 4630440
        "stop_time" => float 1469758077.1054
        "stop_memory" => integer 4631048
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1058
        "start_memory" => integer 4646240
        "stop_time" => float 1469758077.1059
        "stop_memory" => integer 4646808
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.106
        "start_memory" => integer 4650328
        "stop_time" => float 1469758077.106
        "stop_memory" => integer 4650928
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1064
        "start_memory" => integer 4667112
        "stop_time" => float 1469758077.1064
        "stop_memory" => integer 4667672
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1065
        "start_memory" => integer 4671144
        "stop_time" => float 1469758077.1065
        "stop_memory" => integer 4671736
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1066
        "start_memory" => integer 4676696
        "stop_time" => float 1469758077.1067
        "stop_memory" => integer 4677264
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1067
        "start_memory" => integer 4680760
        "stop_time" => float 1469758077.1068
        "stop_memory" => integer 4681352
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1072
        "start_memory" => integer 4691064
        "stop_time" => float 1469758077.1072
        "stop_memory" => integer 4691648
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1073
        "start_memory" => integer 4695176
        "stop_time" => float 1469758077.1074
        "stop_memory" => integer 4695776
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1077
        "start_memory" => integer 4700096
        "stop_time" => float 1469758077.1077
        "stop_memory" => integer 4700672
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1078
        "start_memory" => integer 4704176
        "stop_time" => float 1469758077.1079
        "stop_memory" => integer 4704776
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1083
        "start_memory" => integer 4714768
        "stop_time" => float 1469758077.1083
        "stop_memory" => integer 4715344
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1084
        "start_memory" => integer 4718848
        "stop_time" => float 1469758077.1084
        "stop_memory" => integer 4719448
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1089
        "start_memory" => integer 4745160
        "stop_time" => float 1469758077.109
        "stop_memory" => integer 4745752
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1091
        "start_memory" => integer 4749304
        "stop_time" => float 1469758077.1091
        "stop_memory" => integer 4749896
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1102
        "start_memory" => integer 4760984
        "stop_time" => float 1469758077.1102
        "stop_memory" => integer 4761576
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1103
        "start_memory" => integer 4765136
        "stop_time" => float 1469758077.1104
        "stop_memory" => integer 4765744
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1115
        "start_memory" => integer 4775280
        "stop_time" => float 1469758077.1115
        "stop_memory" => integer 4775848
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1116
        "start_memory" => integer 4779368
        "stop_time" => float 1469758077.1117
        "stop_memory" => integer 4779968
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.112
        "start_memory" => integer 4797752
        "stop_time" => float 1469758077.1121
        "stop_memory" => integer 4798344
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1122
        "start_memory" => integer 4801904
        "stop_time" => float 1469758077.1122
        "stop_memory" => integer 4802512
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1126
        "start_memory" => integer 4819424
        "stop_time" => float 1469758077.1127
        "stop_memory" => integer 4820008
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1127
        "start_memory" => integer 4823584
        "stop_time" => float 1469758077.1128
        "stop_memory" => integer 4824192
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1132
        "start_memory" => integer 4839760
        "stop_time" => float 1469758077.1132
        "stop_memory" => integer 4840344
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1133
        "start_memory" => integer 4843904
        "stop_time" => float 1469758077.1133
        "stop_memory" => integer 4844512
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1137
        "start_memory" => integer 4861208
        "stop_time" => float 1469758077.1137
        "stop_memory" => integer 4861776
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1138
        "start_memory" => integer 4865304
        "stop_time" => float 1469758077.1139
        "stop_memory" => integer 4865904
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1144
        "start_memory" => integer 4883496
        "stop_time" => float 1469758077.1145
        "stop_memory" => integer 4884072
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1146
        "start_memory" => integer 4887576
        "stop_time" => float 1469758077.1146
        "stop_memory" => integer 4888176
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.115
        "start_memory" => integer 4895208
        "stop_time" => float 1469758077.115
        "stop_memory" => integer 4895784
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1151
        "start_memory" => integer 4899296
        "stop_time" => float 1469758077.1152
        "stop_memory" => integer 4899896
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1156
        "start_memory" => integer 4910144
        "stop_time" => float 1469758077.1156
        "stop_memory" => integer 4910736
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1157
        "start_memory" => integer 4914312
        "stop_time" => float 1469758077.1157
        "stop_memory" => integer 4914920
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1166
        "start_memory" => integer 4923488
        "stop_time" => float 1469758077.1166
        "stop_memory" => integer 4924072
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1167
        "start_memory" => integer 4927648
        "stop_time" => float 1469758077.1167
        "stop_memory" => integer 4928256
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1175
        "start_memory" => integer 4935864
        "stop_time" => float 1469758077.1176
        "stop_memory" => integer 4936432
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1176
        "start_memory" => integer 4939960
        "stop_time" => float 1469758077.1177
        "stop_memory" => integer 4940560
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1181
        "start_memory" => integer 4946104
        "stop_time" => float 1469758077.1181
        "stop_memory" => integer 4946680
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1182
        "start_memory" => integer 4950208
        "stop_time" => float 1469758077.1182
        "stop_memory" => integer 4950808
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1195
        "start_memory" => integer 4959304
        "stop_time" => float 1469758077.1196
        "stop_memory" => integer 4959880
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1197
        "start_memory" => integer 4963384
        "stop_time" => float 1469758077.1197
        "stop_memory" => integer 4963984
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.121
        "start_memory" => integer 5009744
        "stop_time" => float 1469758077.121
        "stop_memory" => integer 5010288
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1211
        "start_memory" => integer 5013720
        "stop_time" => float 1469758077.1212
        "stop_memory" => integer 5014304
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1239
        "start_memory" => integer 5029344
        "stop_time" => float 1469758077.124
        "stop_memory" => integer 5029904
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.124
        "start_memory" => integer 5033368
        "stop_time" => float 1469758077.1241
        "stop_memory" => integer 5033952
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1246
        "start_memory" => integer 5052480
        "stop_time" => float 1469758077.1247
        "stop_memory" => integer 5053040
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1248
        "start_memory" => integer 5056472
        "stop_time" => float 1469758077.1249
        "stop_memory" => integer 5057056
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1255
        "start_memory" => integer 5101496
        "stop_time" => float 1469758077.1255
        "stop_memory" => integer 5102072
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1256
        "start_memory" => integer 5105552
        "stop_time" => float 1469758077.1257
        "stop_memory" => integer 5106144
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1261
        "start_memory" => integer 5126504
        "stop_time" => float 1469758077.1261
        "stop_memory" => integer 5127088
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1262
        "start_memory" => integer 5132648
        "stop_time" => float 1469758077.1262
        "stop_memory" => integer 5133248
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1271
        "start_memory" => integer 5183744
        "stop_time" => float 1469758077.1272
        "stop_memory" => integer 5184304
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1273
        "start_memory" => integer 5187784
        "stop_time" => float 1469758077.1273
        "stop_memory" => integer 5188376
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1277
        "start_memory" => integer 5210640
        "stop_time" => float 1469758077.1278
        "stop_memory" => integer 5211192
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1279
        "start_memory" => integer 5214616
        "stop_time" => float 1469758077.128
        "stop_memory" => integer 5215184
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1288
        "start_memory" => integer 5287504
        "stop_time" => float 1469758077.1289
        "stop_memory" => integer 5288072
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1289
        "start_memory" => integer 5291504
        "stop_time" => float 1469758077.129
        "stop_memory" => integer 5292088
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1325
        "start_memory" => integer 5314880
        "stop_time" => float 1469758077.1326
        "stop_memory" => integer 5315440
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1327
        "start_memory" => integer 5318904
        "stop_time" => float 1469758077.1327
        "stop_memory" => integer 5319488
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.134
        "start_memory" => integer 5464392
        "stop_time" => float 1469758077.134
        "stop_memory" => integer 5464968
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1341
        "start_memory" => integer 5468496
        "stop_time" => float 1469758077.1342
        "stop_memory" => integer 5469088
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1348
        "start_memory" => integer 5484520
        "stop_time" => float 1469758077.1349
        "stop_memory" => integer 5485104
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1469758077.1351
        "start_memory" => integer 5453360
        "stop_time" => float 1469758077.1352
        "stop_memory" => integer 5455816
    )
)

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