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 1441254446.4715
        "start_memory" => integer 901408
        "stop_time" => float 1441254446.7118
        "stop_memory" => integer 5452376
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4715
        "start_memory" => integer 903712
        "stop_time" => float 1441254446.4715
        "stop_memory" => integer 904400
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4721
        "start_memory" => integer 981112
        "stop_time" => float 1441254446.4721
        "stop_memory" => integer 981672
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4722
        "start_memory" => integer 985688
        "stop_time" => float 1441254446.4723
        "stop_memory" => integer 986280
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4724
        "start_memory" => integer 993912
        "stop_time" => float 1441254446.4725
        "stop_memory" => integer 994464
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4725
        "start_memory" => integer 998104
        "stop_time" => float 1441254446.4726
        "stop_memory" => integer 998688
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4727
        "start_memory" => integer 1001896
        "stop_time" => float 1441254446.4728
        "stop_memory" => integer 1002488
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.476
        "start_memory" => integer 1323072
        "stop_time" => float 1441254446.476
        "stop_memory" => integer 1323608
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4761
        "start_memory" => integer 1327016
        "stop_time" => float 1441254446.4762
        "stop_memory" => integer 1327656
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4764
        "start_memory" => integer 1346432
        "stop_time" => float 1441254446.4765
        "stop_memory" => integer 1347016
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4765
        "start_memory" => integer 1350432
        "stop_time" => float 1441254446.4766
        "stop_memory" => integer 1351008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4775
        "start_memory" => integer 1450352
        "stop_time" => float 1441254446.4776
        "stop_memory" => integer 1450952
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4777
        "start_memory" => integer 1454456
        "stop_time" => float 1441254446.4778
        "stop_memory" => integer 1455056
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4782
        "start_memory" => integer 1567952
        "stop_time" => float 1441254446.4783
        "stop_memory" => integer 1568496
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4783
        "start_memory" => integer 1571920
        "stop_time" => float 1441254446.4784
        "stop_memory" => integer 1572488
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4787
        "start_memory" => integer 1606536
        "stop_time" => float 1441254446.4787
        "stop_memory" => integer 1607136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4787
        "start_memory" => integer 1609672
        "stop_time" => float 1441254446.4788
        "stop_memory" => integer 1610384
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4788
        "start_memory" => integer 1613896
        "stop_time" => float 1441254446.4789
        "stop_memory" => integer 1614496
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.479
        "start_memory" => integer 1616184
        "stop_time" => float 1441254446.4791
        "stop_memory" => integer 1616784
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4791
        "start_memory" => integer 1620304
        "stop_time" => float 1441254446.4792
        "stop_memory" => integer 1620880
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4794
        "start_memory" => integer 1650304
        "stop_time" => float 1441254446.4795
        "stop_memory" => integer 1650864
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4795
        "start_memory" => integer 1654360
        "stop_time" => float 1441254446.4796
        "stop_memory" => integer 1654952
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4801
        "start_memory" => integer 1716152
        "stop_time" => float 1441254446.4801
        "stop_memory" => integer 1716704
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4802
        "start_memory" => integer 1720152
        "stop_time" => float 1441254446.4802
        "stop_memory" => integer 1720720
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.4812
        "start_memory" => integer 1778512
        "stop_time" => float 1441254446.4812
        "stop_memory" => integer 1779128
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5519
        "start_memory" => integer 1817072
        "stop_time" => float 1441254446.5519
        "stop_memory" => integer 1817640
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.552
        "start_memory" => integer 1821064
        "stop_time" => float 1441254446.552
        "stop_memory" => integer 1821648
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5527
        "start_memory" => integer 1855712
        "stop_time" => float 1441254446.5527
        "stop_memory" => integer 1856288
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5528
        "start_memory" => integer 1859768
        "stop_time" => float 1441254446.5528
        "stop_memory" => integer 1860360
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5534
        "start_memory" => integer 1878976
        "stop_time" => float 1441254446.5534
        "stop_memory" => integer 1879544
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5534
        "start_memory" => integer 1883008
        "stop_time" => float 1441254446.5535
        "stop_memory" => integer 1883600
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5541
        "start_memory" => integer 1930912
        "stop_time" => float 1441254446.5541
        "stop_memory" => integer 1931512
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5543
        "start_memory" => integer 1943048
        "stop_time" => float 1441254446.5543
        "stop_memory" => integer 1943880
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5544
        "start_memory" => integer 1947392
        "stop_time" => float 1441254446.5544
        "stop_memory" => integer 1947976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.555
        "start_memory" => integer 1986000
        "stop_time" => float 1441254446.555
        "stop_memory" => integer 1986600
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5553
        "start_memory" => integer 1998664
        "stop_time" => float 1441254446.5554
        "stop_memory" => integer 1999240
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5559
        "start_memory" => integer 2026240
        "stop_time" => float 1441254446.5559
        "stop_memory" => integer 2026840
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5562
        "start_memory" => integer 2035656
        "stop_time" => float 1441254446.5562
        "stop_memory" => integer 2036232
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5565
        "start_memory" => integer 2049368
        "stop_time" => float 1441254446.5566
        "stop_memory" => integer 2049968
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5568
        "start_memory" => integer 2056984
        "stop_time" => float 1441254446.5568
        "stop_memory" => integer 2057576
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5571
        "start_memory" => integer 2070864
        "stop_time" => float 1441254446.5572
        "stop_memory" => integer 2071456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5575
        "start_memory" => integer 2085096
        "stop_time" => float 1441254446.5575
        "stop_memory" => integer 2085688
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5578
        "start_memory" => integer 2095168
        "stop_time" => float 1441254446.5578
        "stop_memory" => integer 2095760
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.558
        "start_memory" => integer 2104432
        "stop_time" => float 1441254446.5581
        "stop_memory" => integer 2105024
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5584
        "start_memory" => integer 2150344
        "stop_time" => float 1441254446.5584
        "stop_memory" => integer 2150920
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5588
        "start_memory" => integer 2173848
        "stop_time" => float 1441254446.5589
        "stop_memory" => integer 2174448
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5591
        "start_memory" => integer 2187744
        "stop_time" => float 1441254446.5592
        "stop_memory" => integer 2188320
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5595
        "start_memory" => integer 2207520
        "stop_time" => float 1441254446.5595
        "stop_memory" => integer 2208104
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5598
        "start_memory" => integer 2221744
        "stop_time" => float 1441254446.5598
        "stop_memory" => integer 2222312
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5599
        "start_memory" => integer 2225768
        "stop_time" => float 1441254446.5599
        "stop_memory" => integer 2226344
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5676
        "start_memory" => integer 2316832
        "stop_time" => float 1441254446.5677
        "stop_memory" => integer 2317408
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5678
        "start_memory" => integer 2320912
        "stop_time" => float 1441254446.5678
        "stop_memory" => integer 2321504
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5711
        "start_memory" => integer 2340592
        "stop_time" => float 1441254446.5711
        "stop_memory" => integer 2341176
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5712
        "start_memory" => integer 2344704
        "stop_time" => float 1441254446.5712
        "stop_memory" => integer 2345304
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5747
        "start_memory" => integer 2364488
        "stop_time" => float 1441254446.5747
        "stop_memory" => integer 2365048
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5748
        "start_memory" => integer 2368528
        "stop_time" => float 1441254446.5749
        "stop_memory" => integer 2369120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5754
        "start_memory" => integer 2422760
        "stop_time" => float 1441254446.5754
        "stop_memory" => integer 2423360
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5791
        "start_memory" => integer 2430696
        "stop_time" => float 1441254446.5791
        "stop_memory" => integer 2431272
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5792
        "start_memory" => integer 2434776
        "stop_time" => float 1441254446.5792
        "stop_memory" => integer 2435376
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5914
        "start_memory" => integer 2474992
        "stop_time" => float 1441254446.5915
        "stop_memory" => integer 2475568
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5916
        "start_memory" => integer 2479096
        "stop_time" => float 1441254446.5916
        "stop_memory" => integer 2479696
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5918
        "start_memory" => integer 2495328
        "stop_time" => float 1441254446.5918
        "stop_memory" => integer 2495904
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5923
        "start_memory" => integer 2503216
        "stop_time" => float 1441254446.5924
        "stop_memory" => integer 2503784
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5924
        "start_memory" => integer 2507256
        "stop_time" => float 1441254446.5924
        "stop_memory" => integer 2507848
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5932
        "start_memory" => integer 2557272
        "stop_time" => float 1441254446.5932
        "stop_memory" => integer 2558368
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5933
        "start_memory" => integer 2561872
        "stop_time" => float 1441254446.5933
        "stop_memory" => integer 2562472
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5974
        "start_memory" => integer 2581856
        "stop_time" => float 1441254446.5974
        "stop_memory" => integer 2582416
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5975
        "start_memory" => integer 2585888
        "stop_time" => float 1441254446.5975
        "stop_memory" => integer 2586480
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5981
        "start_memory" => integer 2601664
        "stop_time" => float 1441254446.5982
        "stop_memory" => integer 2602200
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.5982
        "start_memory" => integer 2605608
        "stop_time" => float 1441254446.5983
        "stop_memory" => integer 2606184
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6
        "start_memory" => integer 2612904
        "stop_time" => float 1441254446.6001
        "stop_memory" => integer 2613520
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6005
        "start_memory" => integer 2620984
        "stop_time" => float 1441254446.6005
        "stop_memory" => integer 2621576
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6007
        "start_memory" => integer 2646192
        "stop_time" => float 1441254446.6008
        "stop_memory" => integer 2646696
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.602
        "start_memory" => integer 2647976
        "stop_time" => float 1441254446.6021
        "stop_memory" => integer 2648568
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6034
        "start_memory" => integer 2667352
        "stop_time" => float 1441254446.6035
        "stop_memory" => integer 2667912
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6036
        "start_memory" => integer 2671408
        "stop_time" => float 1441254446.6036
        "stop_memory" => integer 2672000
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6061
        "start_memory" => integer 2683416
        "stop_time" => float 1441254446.6061
        "stop_memory" => integer 2684000
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6072
        "start_memory" => integer 2688000
        "stop_time" => float 1441254446.6072
        "stop_memory" => integer 2688552
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6073
        "start_memory" => integer 2691984
        "stop_time" => float 1441254446.6074
        "stop_memory" => integer 2692568
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6078
        "start_memory" => integer 2709952
        "stop_time" => float 1441254446.6078
        "stop_memory" => integer 2710528
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6079
        "start_memory" => integer 2713992
        "stop_time" => float 1441254446.6079
        "stop_memory" => integer 2714584
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6096
        "start_memory" => integer 2800808
        "stop_time" => float 1441254446.6096
        "stop_memory" => integer 2801408
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6097
        "start_memory" => integer 2804960
        "stop_time" => float 1441254446.6097
        "stop_memory" => integer 2805552
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6098
        "start_memory" => integer 2809280
        "stop_time" => float 1441254446.6098
        "stop_memory" => integer 2809840
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6102
        "start_memory" => integer 2825656
        "stop_time" => float 1441254446.6102
        "stop_memory" => integer 2826264
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6103
        "start_memory" => integer 2829816
        "stop_time" => float 1441254446.6103
        "stop_memory" => integer 2830424
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6114
        "start_memory" => integer 2835456
        "stop_time" => float 1441254446.6114
        "stop_memory" => integer 2836024
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6115
        "start_memory" => integer 2839528
        "stop_time" => float 1441254446.6115
        "stop_memory" => integer 2840128
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6124
        "start_memory" => integer 2927544
        "stop_time" => float 1441254446.6124
        "stop_memory" => integer 2928136
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6125
        "start_memory" => integer 2931688
        "stop_time" => float 1441254446.6125
        "stop_memory" => integer 2932296
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6127
        "start_memory" => integer 2944328
        "stop_time" => float 1441254446.6127
        "stop_memory" => integer 2944896
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6127
        "start_memory" => integer 2948416
        "stop_time" => float 1441254446.6128
        "stop_memory" => integer 2949040
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6135
        "start_memory" => integer 2992416
        "stop_time" => float 1441254446.6135
        "stop_memory" => integer 2992992
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6136
        "start_memory" => integer 2996512
        "stop_time" => float 1441254446.6136
        "stop_memory" => integer 2997112
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6142
        "start_memory" => integer 3036584
        "stop_time" => float 1441254446.6142
        "stop_memory" => integer 3037160
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6143
        "start_memory" => integer 3040664
        "stop_time" => float 1441254446.6143
        "stop_memory" => integer 3041264
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.615
        "start_memory" => integer 3068416
        "stop_time" => float 1441254446.6151
        "stop_memory" => integer 3069008
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6151
        "start_memory" => integer 3072568
        "stop_time" => float 1441254446.6152
        "stop_memory" => integer 3073176
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6159
        "start_memory" => integer 3104424
        "stop_time" => float 1441254446.6159
        "stop_memory" => integer 3105024
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.616
        "start_memory" => integer 3108632
        "stop_time" => float 1441254446.616
        "stop_memory" => integer 3109248
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6162
        "start_memory" => integer 3122424
        "stop_time" => float 1441254446.6162
        "stop_memory" => integer 3123016
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6163
        "start_memory" => integer 3127656
        "stop_time" => float 1441254446.6163
        "stop_memory" => integer 3128272
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.617
        "start_memory" => integer 3178856
        "stop_time" => float 1441254446.617
        "stop_memory" => integer 3179448
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6171
        "start_memory" => integer 3183056
        "stop_time" => float 1441254446.6171
        "stop_memory" => integer 3183672
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6178
        "start_memory" => integer 3215560
        "stop_time" => float 1441254446.6179
        "stop_memory" => integer 3216152
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6179
        "start_memory" => integer 3219752
        "stop_time" => float 1441254446.618
        "stop_memory" => integer 3220368
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6186
        "start_memory" => integer 3243664
        "stop_time" => float 1441254446.6186
        "stop_memory" => integer 3244256
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6187
        "start_memory" => integer 3247864
        "stop_time" => float 1441254446.6188
        "stop_memory" => integer 3248480
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6196
        "start_memory" => integer 3316320
        "stop_time" => float 1441254446.6197
        "stop_memory" => integer 3316912
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6197
        "start_memory" => integer 3320520
        "stop_time" => float 1441254446.6198
        "stop_memory" => integer 3321136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6213
        "start_memory" => integer 3356912
        "stop_time" => float 1441254446.6213
        "stop_memory" => integer 3357488
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6214
        "start_memory" => integer 3361048
        "stop_time" => float 1441254446.6214
        "stop_memory" => integer 3361656
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6221
        "start_memory" => integer 3379984
        "stop_time" => float 1441254446.6221
        "stop_memory" => integer 3380520
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6222
        "start_memory" => integer 3383944
        "stop_time" => float 1441254446.6223
        "stop_memory" => integer 3384512
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6231
        "start_memory" => integer 3450352
        "stop_time" => float 1441254446.6231
        "stop_memory" => integer 3450936
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6232
        "start_memory" => integer 3454392
        "stop_time" => float 1441254446.6232
        "stop_memory" => integer 3454968
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.626
        "start_memory" => integer 3468600
        "stop_time" => float 1441254446.6261
        "stop_memory" => integer 3469160
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6261
        "start_memory" => integer 3472592
        "stop_time" => float 1441254446.6262
        "stop_memory" => integer 3473176
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6282
        "start_memory" => integer 3494976
        "stop_time" => float 1441254446.6282
        "stop_memory" => integer 3495536
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6283
        "start_memory" => integer 3498960
        "stop_time" => float 1441254446.6284
        "stop_memory" => integer 3499528
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6289
        "start_memory" => integer 3522608
        "stop_time" => float 1441254446.629
        "stop_memory" => integer 3523176
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.629
        "start_memory" => integer 3526600
        "stop_time" => float 1441254446.6291
        "stop_memory" => integer 3527168
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6296
        "start_memory" => integer 3544608
        "stop_time" => float 1441254446.6296
        "stop_memory" => integer 3545176
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6297
        "start_memory" => integer 3548600
        "stop_time" => float 1441254446.6298
        "stop_memory" => integer 3549168
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6307
        "start_memory" => integer 3595776
        "stop_time" => float 1441254446.6308
        "stop_memory" => integer 3596344
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6308
        "start_memory" => integer 3599784
        "stop_time" => float 1441254446.6309
        "stop_memory" => integer 3600368
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6324
        "start_memory" => integer 3614880
        "stop_time" => float 1441254446.6325
        "stop_memory" => integer 3615440
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6325
        "start_memory" => integer 3618888
        "stop_time" => float 1441254446.6326
        "stop_memory" => integer 3619456
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6338
        "start_memory" => integer 3632432
        "stop_time" => float 1441254446.6338
        "stop_memory" => integer 3634040
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6339
        "start_memory" => integer 3637520
        "stop_time" => float 1441254446.634
        "stop_memory" => integer 3638096
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6349
        "start_memory" => integer 3717024
        "stop_time" => float 1441254446.6349
        "stop_memory" => integer 3717600
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.635
        "start_memory" => integer 3721064
        "stop_time" => float 1441254446.635
        "stop_memory" => integer 3721656
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6361
        "start_memory" => integer 3820624
        "stop_time" => float 1441254446.6362
        "stop_memory" => integer 3821176
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6363
        "start_memory" => integer 3824632
        "stop_time" => float 1441254446.6363
        "stop_memory" => integer 3825216
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.638
        "start_memory" => integer 3858104
        "stop_time" => float 1441254446.6381
        "stop_memory" => integer 3858696
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6382
        "start_memory" => integer 3862192
        "stop_time" => float 1441254446.6382
        "stop_memory" => integer 3862792
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6388
        "start_memory" => integer 3888352
        "stop_time" => float 1441254446.6388
        "stop_memory" => integer 3888944
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6389
        "start_memory" => integer 3892520
        "stop_time" => float 1441254446.6389
        "stop_memory" => integer 3893128
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6399
        "start_memory" => integer 3911832
        "stop_time" => float 1441254446.6399
        "stop_memory" => integer 3912400
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.64
        "start_memory" => integer 3915904
        "stop_time" => float 1441254446.64
        "stop_memory" => integer 3916504
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6414
        "start_memory" => integer 3935232
        "stop_time" => float 1441254446.6415
        "stop_memory" => integer 3935824
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.643
        "start_memory" => integer 3943904
        "stop_time" => float 1441254446.6431
        "stop_memory" => integer 3944496
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6469
        "start_memory" => integer 3970864
        "stop_time" => float 1441254446.647
        "stop_memory" => integer 3971424
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6472
        "start_memory" => integer 3977088
        "stop_time" => float 1441254446.6472
        "stop_memory" => integer 3977592
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6483
        "start_memory" => integer 3977944
        "stop_time" => float 1441254446.6484
        "stop_memory" => integer 3978520
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.65
        "start_memory" => integer 3982872
        "stop_time" => float 1441254446.6501
        "stop_memory" => integer 3983448
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6509
        "start_memory" => integer 3991936
        "stop_time" => float 1441254446.651
        "stop_memory" => integer 3992544
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6513
        "start_memory" => integer 3999888
        "stop_time" => float 1441254446.6514
        "stop_memory" => integer 4000464
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6517
        "start_memory" => integer 4002856
        "stop_time" => float 1441254446.6518
        "stop_memory" => integer 4003440
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.652
        "start_memory" => integer 4010376
        "stop_time" => float 1441254446.6521
        "stop_memory" => integer 4010960
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6523
        "start_memory" => integer 4017872
        "stop_time" => float 1441254446.6523
        "stop_memory" => integer 4018424
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6524
        "start_memory" => integer 4021864
        "stop_time" => float 1441254446.6525
        "stop_memory" => integer 4022448
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6529
        "start_memory" => integer 4028664
        "stop_time" => float 1441254446.653
        "stop_memory" => integer 4029256
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.653
        "start_memory" => integer 4036456
        "stop_time" => float 1441254446.6531
        "stop_memory" => integer 4037008
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6531
        "start_memory" => integer 4040448
        "stop_time" => float 1441254446.6532
        "stop_memory" => integer 4041032
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6564
        "start_memory" => integer 4256048
        "stop_time" => float 1441254446.6565
        "stop_memory" => integer 4256640
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6574
        "start_memory" => integer 4317088
        "stop_time" => float 1441254446.6575
        "stop_memory" => integer 4317672
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6583
        "start_memory" => integer 4349360
        "stop_time" => float 1441254446.6584
        "stop_memory" => integer 4349928
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.659
        "start_memory" => integer 4373200
        "stop_time" => float 1441254446.659
        "stop_memory" => integer 4373776
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6596
        "start_memory" => integer 4399528
        "stop_time" => float 1441254446.6597
        "stop_memory" => integer 4400120
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6603
        "start_memory" => integer 4424144
        "stop_time" => float 1441254446.6605
        "stop_memory" => integer 4424680
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6606
        "start_memory" => integer 4428088
        "stop_time" => float 1441254446.6607
        "stop_memory" => integer 4428664
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6616
        "start_memory" => integer 4435296
        "stop_time" => float 1441254446.6616
        "stop_memory" => integer 4435880
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6617
        "start_memory" => integer 4439336
        "stop_time" => float 1441254446.6618
        "stop_memory" => integer 4439912
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6628
        "start_memory" => integer 4464792
        "stop_time" => float 1441254446.6629
        "stop_memory" => integer 4465368
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.663
        "start_memory" => integer 4468824
        "stop_time" => float 1441254446.6631
        "stop_memory" => integer 4469416
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6637
        "start_memory" => integer 4480120
        "stop_time" => float 1441254446.6638
        "stop_memory" => integer 4480704
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6639
        "start_memory" => integer 4484208
        "stop_time" => float 1441254446.664
        "stop_memory" => integer 4484792
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6643
        "start_memory" => integer 4495120
        "stop_time" => float 1441254446.6644
        "stop_memory" => integer 4495704
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6645
        "start_memory" => integer 4499232
        "stop_time" => float 1441254446.6646
        "stop_memory" => integer 4499816
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.665
        "start_memory" => integer 4512272
        "stop_time" => float 1441254446.665
        "stop_memory" => integer 4512880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6651
        "start_memory" => integer 4516424
        "stop_time" => float 1441254446.6652
        "stop_memory" => integer 4517032
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6655
        "start_memory" => integer 4522368
        "stop_time" => float 1441254446.6655
        "stop_memory" => integer 4522936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6658
        "start_memory" => integer 4526448
        "stop_time" => float 1441254446.6659
        "stop_memory" => integer 4527048
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.666
        "start_memory" => integer 4532992
        "stop_time" => float 1441254446.6661
        "stop_memory" => integer 4533568
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6662
        "start_memory" => integer 4537072
        "stop_time" => float 1441254446.6663
        "stop_memory" => integer 4537656
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6675
        "start_memory" => integer 4602784
        "stop_time" => float 1441254446.6677
        "stop_memory" => integer 4603384
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6678
        "start_memory" => integer 4606944
        "stop_time" => float 1441254446.6679
        "stop_memory" => integer 4607552
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6685
        "start_memory" => integer 4623912
        "stop_time" => float 1441254446.6686
        "stop_memory" => integer 4624496
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6687
        "start_memory" => integer 4628072
        "stop_time" => float 1441254446.6688
        "stop_memory" => integer 4628680
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6694
        "start_memory" => integer 4643872
        "stop_time" => float 1441254446.6694
        "stop_memory" => integer 4644440
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6696
        "start_memory" => integer 4647960
        "stop_time" => float 1441254446.6696
        "stop_memory" => integer 4648560
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6702
        "start_memory" => integer 4664744
        "stop_time" => float 1441254446.6703
        "stop_memory" => integer 4665304
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6704
        "start_memory" => integer 4668776
        "stop_time" => float 1441254446.6705
        "stop_memory" => integer 4669368
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6707
        "start_memory" => integer 4674328
        "stop_time" => float 1441254446.6707
        "stop_memory" => integer 4674896
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6708
        "start_memory" => integer 4678392
        "stop_time" => float 1441254446.6709
        "stop_memory" => integer 4678984
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6717
        "start_memory" => integer 4688696
        "stop_time" => float 1441254446.6718
        "stop_memory" => integer 4689280
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6719
        "start_memory" => integer 4692808
        "stop_time" => float 1441254446.672
        "stop_memory" => integer 4693408
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6727
        "start_memory" => integer 4697728
        "stop_time" => float 1441254446.6728
        "stop_memory" => integer 4698304
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6729
        "start_memory" => integer 4701808
        "stop_time" => float 1441254446.6729
        "stop_memory" => integer 4702408
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6737
        "start_memory" => integer 4712400
        "stop_time" => float 1441254446.6738
        "stop_memory" => integer 4712976
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6739
        "start_memory" => integer 4716480
        "stop_time" => float 1441254446.674
        "stop_memory" => integer 4717080
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6749
        "start_memory" => integer 4742792
        "stop_time" => float 1441254446.6749
        "stop_memory" => integer 4743384
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.675
        "start_memory" => integer 4746936
        "stop_time" => float 1441254446.6751
        "stop_memory" => integer 4747528
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6762
        "start_memory" => integer 4758640
        "stop_time" => float 1441254446.6762
        "stop_memory" => integer 4759232
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6763
        "start_memory" => integer 4762792
        "stop_time" => float 1441254446.6763
        "stop_memory" => integer 4763400
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6776
        "start_memory" => integer 4772928
        "stop_time" => float 1441254446.6776
        "stop_memory" => integer 4773496
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6778
        "start_memory" => integer 4777016
        "stop_time" => float 1441254446.6778
        "stop_memory" => integer 4777616
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6783
        "start_memory" => integer 4795400
        "stop_time" => float 1441254446.6783
        "stop_memory" => integer 4795992
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6784
        "start_memory" => integer 4799552
        "stop_time" => float 1441254446.6785
        "stop_memory" => integer 4800160
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6788
        "start_memory" => integer 4817072
        "stop_time" => float 1441254446.6789
        "stop_memory" => integer 4817656
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.679
        "start_memory" => integer 4821232
        "stop_time" => float 1441254446.679
        "stop_memory" => integer 4821840
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6794
        "start_memory" => integer 4837408
        "stop_time" => float 1441254446.6794
        "stop_memory" => integer 4837992
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6796
        "start_memory" => integer 4841552
        "stop_time" => float 1441254446.6797
        "stop_memory" => integer 4842160
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6803
        "start_memory" => integer 4858856
        "stop_time" => float 1441254446.6803
        "stop_memory" => integer 4859424
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6804
        "start_memory" => integer 4862952
        "stop_time" => float 1441254446.6804
        "stop_memory" => integer 4863552
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6808
        "start_memory" => integer 4881144
        "stop_time" => float 1441254446.6809
        "stop_memory" => integer 4881720
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6809
        "start_memory" => integer 4885224
        "stop_time" => float 1441254446.681
        "stop_memory" => integer 4885824
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6814
        "start_memory" => integer 4892856
        "stop_time" => float 1441254446.6815
        "stop_memory" => integer 4893432
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6816
        "start_memory" => integer 4896944
        "stop_time" => float 1441254446.6817
        "stop_memory" => integer 4897544
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6822
        "start_memory" => integer 4907792
        "stop_time" => float 1441254446.6823
        "stop_memory" => integer 4908384
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6825
        "start_memory" => integer 4911960
        "stop_time" => float 1441254446.6825
        "stop_memory" => integer 4912568
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6838
        "start_memory" => integer 4921136
        "stop_time" => float 1441254446.6839
        "stop_memory" => integer 4921720
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.684
        "start_memory" => integer 4925296
        "stop_time" => float 1441254446.684
        "stop_memory" => integer 4925904
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6849
        "start_memory" => integer 4933512
        "stop_time" => float 1441254446.685
        "stop_memory" => integer 4934080
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6851
        "start_memory" => integer 4937608
        "stop_time" => float 1441254446.6852
        "stop_memory" => integer 4938208
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6856
        "start_memory" => integer 4943752
        "stop_time" => float 1441254446.6856
        "stop_memory" => integer 4944328
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6857
        "start_memory" => integer 4947856
        "stop_time" => float 1441254446.6859
        "stop_memory" => integer 4948456
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6873
        "start_memory" => integer 4956952
        "stop_time" => float 1441254446.6873
        "stop_memory" => integer 4957528
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6875
        "start_memory" => integer 4961032
        "stop_time" => float 1441254446.6876
        "stop_memory" => integer 4961632
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.689
        "start_memory" => integer 5007416
        "stop_time" => float 1441254446.6892
        "stop_memory" => integer 5007960
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6892
        "start_memory" => integer 5011392
        "stop_time" => float 1441254446.6893
        "stop_memory" => integer 5011976
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6921
        "start_memory" => integer 5027016
        "stop_time" => float 1441254446.6922
        "stop_memory" => integer 5027576
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6922
        "start_memory" => integer 5031040
        "stop_time" => float 1441254446.6923
        "stop_memory" => integer 5031624
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6928
        "start_memory" => integer 5050136
        "stop_time" => float 1441254446.6929
        "stop_memory" => integer 5050696
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.693
        "start_memory" => integer 5054128
        "stop_time" => float 1441254446.6931
        "stop_memory" => integer 5054712
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6938
        "start_memory" => integer 5099080
        "stop_time" => float 1441254446.6938
        "stop_memory" => integer 5099656
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.6939
        "start_memory" => integer 5103136
        "stop_time" => float 1441254446.694
        "stop_memory" => integer 5103728
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7011
        "start_memory" => integer 5124088
        "stop_time" => float 1441254446.7011
        "stop_memory" => integer 5124672
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7012
        "start_memory" => integer 5130232
        "stop_time" => float 1441254446.7013
        "stop_memory" => integer 5130832
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7022
        "start_memory" => integer 5181328
        "stop_time" => float 1441254446.7023
        "stop_memory" => integer 5181888
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7024
        "start_memory" => integer 5185384
        "stop_time" => float 1441254446.7024
        "stop_memory" => integer 5185976
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7029
        "start_memory" => integer 5208272
        "stop_time" => float 1441254446.703
        "stop_memory" => integer 5208824
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7031
        "start_memory" => integer 5212248
        "stop_time" => float 1441254446.7032
        "stop_memory" => integer 5212816
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7043
        "start_memory" => integer 5285144
        "stop_time" => float 1441254446.7044
        "stop_memory" => integer 5285712
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7045
        "start_memory" => integer 5289144
        "stop_time" => float 1441254446.7046
        "stop_memory" => integer 5289728
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7087
        "start_memory" => integer 5312520
        "stop_time" => float 1441254446.7088
        "stop_memory" => integer 5313080
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7089
        "start_memory" => integer 5316528
        "stop_time" => float 1441254446.7089
        "stop_memory" => integer 5317112
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7104
        "start_memory" => integer 5462040
        "stop_time" => float 1441254446.7105
        "stop_memory" => integer 5462616
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7105
        "start_memory" => integer 5466144
        "stop_time" => float 1441254446.7106
        "stop_memory" => integer 5466736
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7113
        "start_memory" => integer 5481480
        "stop_time" => float 1441254446.7114
        "stop_memory" => integer 5482064
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441254446.7116
        "start_memory" => integer 5450320
        "stop_time" => float 1441254446.7117
        "stop_memory" => integer 5452752
    )
)

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