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 1454925862.6596
        "start_memory" => integer 901408
        "stop_time" => float 1454925862.8647
        "stop_memory" => integer 5452376
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6597
        "start_memory" => integer 903712
        "stop_time" => float 1454925862.6597
        "stop_memory" => integer 904400
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6603
        "start_memory" => integer 981112
        "stop_time" => float 1454925862.6603
        "stop_memory" => integer 981672
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6604
        "start_memory" => integer 985688
        "stop_time" => float 1454925862.6604
        "stop_memory" => integer 986280
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6605
        "start_memory" => integer 993912
        "stop_time" => float 1454925862.6606
        "stop_memory" => integer 994464
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6606
        "start_memory" => integer 998104
        "stop_time" => float 1454925862.6607
        "stop_memory" => integer 998688
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6608
        "start_memory" => integer 1001896
        "stop_time" => float 1454925862.6608
        "stop_memory" => integer 1002488
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6633
        "start_memory" => integer 1323072
        "stop_time" => float 1454925862.6634
        "stop_memory" => integer 1323608
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6634
        "start_memory" => integer 1327016
        "stop_time" => float 1454925862.6635
        "stop_memory" => integer 1327656
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6637
        "start_memory" => integer 1346432
        "stop_time" => float 1454925862.6638
        "stop_memory" => integer 1347016
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6638
        "start_memory" => integer 1350432
        "stop_time" => float 1454925862.6639
        "stop_memory" => integer 1351008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6645
        "start_memory" => integer 1450352
        "stop_time" => float 1454925862.6645
        "stop_memory" => integer 1450952
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6646
        "start_memory" => integer 1454456
        "stop_time" => float 1454925862.6646
        "stop_memory" => integer 1455056
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.665
        "start_memory" => integer 1567952
        "stop_time" => float 1454925862.6651
        "stop_memory" => integer 1568496
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6652
        "start_memory" => integer 1571920
        "stop_time" => float 1454925862.6652
        "stop_memory" => integer 1572488
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6655
        "start_memory" => integer 1606536
        "stop_time" => float 1454925862.6655
        "stop_memory" => integer 1607136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6655
        "start_memory" => integer 1609672
        "stop_time" => float 1454925862.6656
        "stop_memory" => integer 1610384
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6656
        "start_memory" => integer 1613896
        "stop_time" => float 1454925862.6657
        "stop_memory" => integer 1614496
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6658
        "start_memory" => integer 1616184
        "stop_time" => float 1454925862.6658
        "stop_memory" => integer 1616784
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6659
        "start_memory" => integer 1620304
        "stop_time" => float 1454925862.6659
        "stop_memory" => integer 1620880
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6662
        "start_memory" => integer 1650304
        "stop_time" => float 1454925862.6662
        "stop_memory" => integer 1650864
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6663
        "start_memory" => integer 1654360
        "stop_time" => float 1454925862.6663
        "stop_memory" => integer 1654952
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6668
        "start_memory" => integer 1716152
        "stop_time" => float 1454925862.6669
        "stop_memory" => integer 1716704
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6669
        "start_memory" => integer 1720152
        "stop_time" => float 1454925862.667
        "stop_memory" => integer 1720720
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.6679
        "start_memory" => integer 1778512
        "stop_time" => float 1454925862.6679
        "stop_memory" => integer 1779128
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7342
        "start_memory" => integer 1817072
        "stop_time" => float 1454925862.7342
        "stop_memory" => integer 1817640
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7343
        "start_memory" => integer 1821064
        "stop_time" => float 1454925862.7343
        "stop_memory" => integer 1821648
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.735
        "start_memory" => integer 1855712
        "stop_time" => float 1454925862.735
        "stop_memory" => integer 1856288
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7351
        "start_memory" => integer 1859768
        "stop_time" => float 1454925862.7351
        "stop_memory" => integer 1860360
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7356
        "start_memory" => integer 1878976
        "stop_time" => float 1454925862.7356
        "stop_memory" => integer 1879544
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7357
        "start_memory" => integer 1883008
        "stop_time" => float 1454925862.7357
        "stop_memory" => integer 1883600
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7363
        "start_memory" => integer 1930912
        "stop_time" => float 1454925862.7363
        "stop_memory" => integer 1931512
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7364
        "start_memory" => integer 1943048
        "stop_time" => float 1454925862.7364
        "stop_memory" => integer 1943880
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7365
        "start_memory" => integer 1947392
        "stop_time" => float 1454925862.7365
        "stop_memory" => integer 1947976
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7369
        "start_memory" => integer 1986000
        "stop_time" => float 1454925862.7369
        "stop_memory" => integer 1986600
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7371
        "start_memory" => integer 1998664
        "stop_time" => float 1454925862.7372
        "stop_memory" => integer 1999240
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7375
        "start_memory" => integer 2026240
        "stop_time" => float 1454925862.7375
        "stop_memory" => integer 2026840
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7377
        "start_memory" => integer 2035656
        "stop_time" => float 1454925862.7377
        "stop_memory" => integer 2036232
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7379
        "start_memory" => integer 2049368
        "stop_time" => float 1454925862.7379
        "stop_memory" => integer 2049968
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7381
        "start_memory" => integer 2056984
        "stop_time" => float 1454925862.7381
        "stop_memory" => integer 2057576
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7383
        "start_memory" => integer 2070864
        "stop_time" => float 1454925862.7383
        "stop_memory" => integer 2071456
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7385
        "start_memory" => integer 2085096
        "stop_time" => float 1454925862.7386
        "stop_memory" => integer 2085688
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7387
        "start_memory" => integer 2095168
        "stop_time" => float 1454925862.7388
        "stop_memory" => integer 2095760
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7389
        "start_memory" => integer 2104432
        "stop_time" => float 1454925862.739
        "stop_memory" => integer 2105024
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7392
        "start_memory" => integer 2150344
        "stop_time" => float 1454925862.7392
        "stop_memory" => integer 2150920
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7395
        "start_memory" => integer 2173848
        "stop_time" => float 1454925862.7395
        "stop_memory" => integer 2174448
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7397
        "start_memory" => integer 2187744
        "stop_time" => float 1454925862.7397
        "stop_memory" => integer 2188320
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7399
        "start_memory" => integer 2207520
        "stop_time" => float 1454925862.74
        "stop_memory" => integer 2208104
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7402
        "start_memory" => integer 2221744
        "stop_time" => float 1454925862.7402
        "stop_memory" => integer 2222312
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7402
        "start_memory" => integer 2225768
        "stop_time" => float 1454925862.7403
        "stop_memory" => integer 2226344
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7473
        "start_memory" => integer 2316832
        "stop_time" => float 1454925862.7473
        "stop_memory" => integer 2317408
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7474
        "start_memory" => integer 2320912
        "stop_time" => float 1454925862.7474
        "stop_memory" => integer 2321504
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7504
        "start_memory" => integer 2340592
        "stop_time" => float 1454925862.7505
        "stop_memory" => integer 2341176
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7505
        "start_memory" => integer 2344704
        "stop_time" => float 1454925862.7506
        "stop_memory" => integer 2345304
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7537
        "start_memory" => integer 2364488
        "stop_time" => float 1454925862.7537
        "stop_memory" => integer 2365048
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7538
        "start_memory" => integer 2368528
        "stop_time" => float 1454925862.7538
        "stop_memory" => integer 2369120
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7542
        "start_memory" => integer 2422760
        "stop_time" => float 1454925862.7542
        "stop_memory" => integer 2423360
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7576
        "start_memory" => integer 2430696
        "stop_time" => float 1454925862.7576
        "stop_memory" => integer 2431272
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7577
        "start_memory" => integer 2434776
        "stop_time" => float 1454925862.7577
        "stop_memory" => integer 2435376
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.768
        "start_memory" => integer 2474992
        "stop_time" => float 1454925862.768
        "stop_memory" => integer 2475568
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7681
        "start_memory" => integer 2479096
        "stop_time" => float 1454925862.7681
        "stop_memory" => integer 2479696
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7682
        "start_memory" => integer 2495328
        "stop_time" => float 1454925862.7682
        "stop_memory" => integer 2495904
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7687
        "start_memory" => integer 2503216
        "stop_time" => float 1454925862.7687
        "stop_memory" => integer 2503784
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7688
        "start_memory" => integer 2507256
        "stop_time" => float 1454925862.7688
        "stop_memory" => integer 2507848
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7695
        "start_memory" => integer 2557272
        "stop_time" => float 1454925862.7695
        "stop_memory" => integer 2558368
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7696
        "start_memory" => integer 2561872
        "stop_time" => float 1454925862.7696
        "stop_memory" => integer 2562472
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7733
        "start_memory" => integer 2581856
        "stop_time" => float 1454925862.7734
        "stop_memory" => integer 2582416
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7735
        "start_memory" => integer 2585888
        "stop_time" => float 1454925862.7735
        "stop_memory" => integer 2586480
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.774
        "start_memory" => integer 2601664
        "stop_time" => float 1454925862.7741
        "stop_memory" => integer 2602200
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7741
        "start_memory" => integer 2605608
        "stop_time" => float 1454925862.7742
        "stop_memory" => integer 2606184
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7759
        "start_memory" => integer 2612904
        "stop_time" => float 1454925862.7759
        "stop_memory" => integer 2613520
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7763
        "start_memory" => integer 2620984
        "stop_time" => float 1454925862.7764
        "stop_memory" => integer 2621576
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7766
        "start_memory" => integer 2646192
        "stop_time" => float 1454925862.7766
        "stop_memory" => integer 2646696
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7779
        "start_memory" => integer 2647976
        "stop_time" => float 1454925862.7779
        "stop_memory" => integer 2648568
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7793
        "start_memory" => integer 2667352
        "stop_time" => float 1454925862.7793
        "stop_memory" => integer 2667912
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7794
        "start_memory" => integer 2671408
        "stop_time" => float 1454925862.7795
        "stop_memory" => integer 2672000
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7818
        "start_memory" => integer 2683416
        "stop_time" => float 1454925862.7819
        "stop_memory" => integer 2684000
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.783
        "start_memory" => integer 2688000
        "stop_time" => float 1454925862.783
        "stop_memory" => integer 2688552
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7831
        "start_memory" => integer 2691984
        "stop_time" => float 1454925862.7832
        "stop_memory" => integer 2692568
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7836
        "start_memory" => integer 2709952
        "stop_time" => float 1454925862.7836
        "stop_memory" => integer 2710528
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7837
        "start_memory" => integer 2713992
        "stop_time" => float 1454925862.7837
        "stop_memory" => integer 2714584
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7853
        "start_memory" => integer 2800808
        "stop_time" => float 1454925862.7854
        "stop_memory" => integer 2801408
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7854
        "start_memory" => integer 2804960
        "stop_time" => float 1454925862.7855
        "stop_memory" => integer 2805552
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7855
        "start_memory" => integer 2809280
        "stop_time" => float 1454925862.7856
        "stop_memory" => integer 2809840
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.786
        "start_memory" => integer 2825656
        "stop_time" => float 1454925862.786
        "stop_memory" => integer 2826264
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7861
        "start_memory" => integer 2829816
        "stop_time" => float 1454925862.7861
        "stop_memory" => integer 2830424
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7871
        "start_memory" => integer 2835456
        "stop_time" => float 1454925862.7872
        "stop_memory" => integer 2836024
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7872
        "start_memory" => integer 2839528
        "stop_time" => float 1454925862.7873
        "stop_memory" => integer 2840128
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7881
        "start_memory" => integer 2927544
        "stop_time" => float 1454925862.7882
        "stop_memory" => integer 2928136
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7882
        "start_memory" => integer 2931688
        "stop_time" => float 1454925862.7883
        "stop_memory" => integer 2932296
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7884
        "start_memory" => integer 2944328
        "stop_time" => float 1454925862.7884
        "stop_memory" => integer 2944896
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7885
        "start_memory" => integer 2948416
        "stop_time" => float 1454925862.7885
        "stop_memory" => integer 2949040
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7892
        "start_memory" => integer 2992416
        "stop_time" => float 1454925862.7893
        "stop_memory" => integer 2992992
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7893
        "start_memory" => integer 2996512
        "stop_time" => float 1454925862.7894
        "stop_memory" => integer 2997112
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.79
        "start_memory" => integer 3036584
        "stop_time" => float 1454925862.7901
        "stop_memory" => integer 3037160
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7901
        "start_memory" => integer 3040664
        "stop_time" => float 1454925862.7902
        "stop_memory" => integer 3041264
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7909
        "start_memory" => integer 3068416
        "stop_time" => float 1454925862.7909
        "stop_memory" => integer 3069008
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.791
        "start_memory" => integer 3072568
        "stop_time" => float 1454925862.791
        "stop_memory" => integer 3073176
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7917
        "start_memory" => integer 3104424
        "stop_time" => float 1454925862.7918
        "stop_memory" => integer 3105024
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7918
        "start_memory" => integer 3108632
        "stop_time" => float 1454925862.7919
        "stop_memory" => integer 3109248
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.792
        "start_memory" => integer 3122424
        "stop_time" => float 1454925862.7921
        "stop_memory" => integer 3123016
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7921
        "start_memory" => integer 3127656
        "stop_time" => float 1454925862.7922
        "stop_memory" => integer 3128272
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7929
        "start_memory" => integer 3178856
        "stop_time" => float 1454925862.7929
        "stop_memory" => integer 3179448
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.793
        "start_memory" => integer 3183056
        "stop_time" => float 1454925862.793
        "stop_memory" => integer 3183672
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7937
        "start_memory" => integer 3215560
        "stop_time" => float 1454925862.7937
        "stop_memory" => integer 3216152
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7938
        "start_memory" => integer 3219752
        "stop_time" => float 1454925862.7938
        "stop_memory" => integer 3220368
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7945
        "start_memory" => integer 3243664
        "stop_time" => float 1454925862.7945
        "stop_memory" => integer 3244256
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7946
        "start_memory" => integer 3247864
        "stop_time" => float 1454925862.7946
        "stop_memory" => integer 3248480
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7955
        "start_memory" => integer 3316320
        "stop_time" => float 1454925862.7955
        "stop_memory" => integer 3316912
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7956
        "start_memory" => integer 3320520
        "stop_time" => float 1454925862.7956
        "stop_memory" => integer 3321136
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7971
        "start_memory" => integer 3356912
        "stop_time" => float 1454925862.7972
        "stop_memory" => integer 3357488
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7972
        "start_memory" => integer 3361048
        "stop_time" => float 1454925862.7973
        "stop_memory" => integer 3361656
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7979
        "start_memory" => integer 3379984
        "stop_time" => float 1454925862.7979
        "stop_memory" => integer 3380520
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.798
        "start_memory" => integer 3383944
        "stop_time" => float 1454925862.7981
        "stop_memory" => integer 3384512
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.7989
        "start_memory" => integer 3450352
        "stop_time" => float 1454925862.7989
        "stop_memory" => integer 3450936
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.799
        "start_memory" => integer 3454392
        "stop_time" => float 1454925862.799
        "stop_memory" => integer 3454968
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8018
        "start_memory" => integer 3468600
        "stop_time" => float 1454925862.8019
        "stop_memory" => integer 3469160
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8019
        "start_memory" => integer 3472592
        "stop_time" => float 1454925862.802
        "stop_memory" => integer 3473176
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.804
        "start_memory" => integer 3494976
        "stop_time" => float 1454925862.804
        "stop_memory" => integer 3495536
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8041
        "start_memory" => integer 3498960
        "stop_time" => float 1454925862.8042
        "stop_memory" => integer 3499528
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8047
        "start_memory" => integer 3522608
        "stop_time" => float 1454925862.8047
        "stop_memory" => integer 3523176
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8048
        "start_memory" => integer 3526600
        "stop_time" => float 1454925862.8049
        "stop_memory" => integer 3527168
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8053
        "start_memory" => integer 3544608
        "stop_time" => float 1454925862.8054
        "stop_memory" => integer 3545176
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8054
        "start_memory" => integer 3548600
        "stop_time" => float 1454925862.8055
        "stop_memory" => integer 3549168
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8064
        "start_memory" => integer 3595776
        "stop_time" => float 1454925862.8065
        "stop_memory" => integer 3596344
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8066
        "start_memory" => integer 3599784
        "stop_time" => float 1454925862.8066
        "stop_memory" => integer 3600368
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8082
        "start_memory" => integer 3614880
        "stop_time" => float 1454925862.8082
        "stop_memory" => integer 3615440
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8083
        "start_memory" => integer 3618888
        "stop_time" => float 1454925862.8084
        "stop_memory" => integer 3619456
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8096
        "start_memory" => integer 3632432
        "stop_time" => float 1454925862.8096
        "stop_memory" => integer 3634040
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8097
        "start_memory" => integer 3637520
        "stop_time" => float 1454925862.8097
        "stop_memory" => integer 3638096
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8106
        "start_memory" => integer 3717024
        "stop_time" => float 1454925862.8107
        "stop_memory" => integer 3717600
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8107
        "start_memory" => integer 3721064
        "stop_time" => float 1454925862.8108
        "stop_memory" => integer 3721656
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8119
        "start_memory" => integer 3820624
        "stop_time" => float 1454925862.8119
        "stop_memory" => integer 3821176
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.812
        "start_memory" => integer 3824632
        "stop_time" => float 1454925862.8121
        "stop_memory" => integer 3825216
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8138
        "start_memory" => integer 3858104
        "stop_time" => float 1454925862.8138
        "stop_memory" => integer 3858696
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8139
        "start_memory" => integer 3862192
        "stop_time" => float 1454925862.8139
        "stop_memory" => integer 3862792
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8144
        "start_memory" => integer 3888352
        "stop_time" => float 1454925862.8145
        "stop_memory" => integer 3888944
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8146
        "start_memory" => integer 3892520
        "stop_time" => float 1454925862.8146
        "stop_memory" => integer 3893128
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8155
        "start_memory" => integer 3911832
        "stop_time" => float 1454925862.8156
        "stop_memory" => integer 3912400
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8157
        "start_memory" => integer 3915904
        "stop_time" => float 1454925862.8157
        "stop_memory" => integer 3916504
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8171
        "start_memory" => integer 3935232
        "stop_time" => float 1454925862.8171
        "stop_memory" => integer 3935824
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8186
        "start_memory" => integer 3943904
        "stop_time" => float 1454925862.8187
        "stop_memory" => integer 3944496
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8222
        "start_memory" => integer 3970864
        "stop_time" => float 1454925862.8223
        "stop_memory" => integer 3971424
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8224
        "start_memory" => integer 3977088
        "stop_time" => float 1454925862.8224
        "stop_memory" => integer 3977592
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8235
        "start_memory" => integer 3977944
        "stop_time" => float 1454925862.8235
        "stop_memory" => integer 3978520
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8246
        "start_memory" => integer 3982872
        "stop_time" => float 1454925862.8246
        "stop_memory" => integer 3983448
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8254
        "start_memory" => integer 3991936
        "stop_time" => float 1454925862.8254
        "stop_memory" => integer 3992544
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8257
        "start_memory" => integer 3999888
        "stop_time" => float 1454925862.8258
        "stop_memory" => integer 4000464
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8261
        "start_memory" => integer 4002856
        "stop_time" => float 1454925862.8262
        "stop_memory" => integer 4003440
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8263
        "start_memory" => integer 4010376
        "stop_time" => float 1454925862.8264
        "stop_memory" => integer 4010960
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8266
        "start_memory" => integer 4017872
        "stop_time" => float 1454925862.8266
        "stop_memory" => integer 4018424
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8267
        "start_memory" => integer 4021864
        "stop_time" => float 1454925862.8268
        "stop_memory" => integer 4022448
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8272
        "start_memory" => integer 4028664
        "stop_time" => float 1454925862.8272
        "stop_memory" => integer 4029256
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8273
        "start_memory" => integer 4036456
        "stop_time" => float 1454925862.8274
        "stop_memory" => integer 4037008
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8274
        "start_memory" => integer 4040448
        "stop_time" => float 1454925862.8275
        "stop_memory" => integer 4041032
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.829
        "start_memory" => integer 4256048
        "stop_time" => float 1454925862.829
        "stop_memory" => integer 4256640
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8296
        "start_memory" => integer 4317088
        "stop_time" => float 1454925862.8296
        "stop_memory" => integer 4317672
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.83
        "start_memory" => integer 4349360
        "stop_time" => float 1454925862.8301
        "stop_memory" => integer 4349928
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8304
        "start_memory" => integer 4373200
        "stop_time" => float 1454925862.8304
        "stop_memory" => integer 4373776
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8308
        "start_memory" => integer 4399528
        "stop_time" => float 1454925862.8308
        "stop_memory" => integer 4400120
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8311
        "start_memory" => integer 4424144
        "stop_time" => float 1454925862.8312
        "stop_memory" => integer 4424680
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8312
        "start_memory" => integer 4428088
        "stop_time" => float 1454925862.8313
        "stop_memory" => integer 4428664
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8318
        "start_memory" => integer 4435296
        "stop_time" => float 1454925862.8318
        "stop_memory" => integer 4435880
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8319
        "start_memory" => integer 4439336
        "stop_time" => float 1454925862.8319
        "stop_memory" => integer 4439912
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8324
        "start_memory" => integer 4464792
        "stop_time" => float 1454925862.8325
        "stop_memory" => integer 4465368
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8325
        "start_memory" => integer 4468824
        "stop_time" => float 1454925862.8326
        "stop_memory" => integer 4469416
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.833
        "start_memory" => integer 4480120
        "stop_time" => float 1454925862.833
        "stop_memory" => integer 4480704
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8331
        "start_memory" => integer 4484208
        "stop_time" => float 1454925862.8331
        "stop_memory" => integer 4484792
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8333
        "start_memory" => integer 4495120
        "stop_time" => float 1454925862.8333
        "stop_memory" => integer 4495704
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8334
        "start_memory" => integer 4499232
        "stop_time" => float 1454925862.8335
        "stop_memory" => integer 4499816
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8337
        "start_memory" => integer 4512272
        "stop_time" => float 1454925862.8337
        "stop_memory" => integer 4512880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8338
        "start_memory" => integer 4516424
        "stop_time" => float 1454925862.8338
        "stop_memory" => integer 4517032
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.834
        "start_memory" => integer 4522368
        "stop_time" => float 1454925862.834
        "stop_memory" => integer 4522936
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8341
        "start_memory" => integer 4526448
        "stop_time" => float 1454925862.8341
        "stop_memory" => integer 4527048
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8342
        "start_memory" => integer 4532992
        "stop_time" => float 1454925862.8343
        "stop_memory" => integer 4533568
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8343
        "start_memory" => integer 4537072
        "stop_time" => float 1454925862.8344
        "stop_memory" => integer 4537656
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8351
        "start_memory" => integer 4602784
        "stop_time" => float 1454925862.8351
        "stop_memory" => integer 4603384
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8352
        "start_memory" => integer 4606944
        "stop_time" => float 1454925862.8352
        "stop_memory" => integer 4607552
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8356
        "start_memory" => integer 4623912
        "stop_time" => float 1454925862.8356
        "stop_memory" => integer 4624496
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8357
        "start_memory" => integer 4628072
        "stop_time" => float 1454925862.8358
        "stop_memory" => integer 4628680
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8361
        "start_memory" => integer 4643872
        "stop_time" => float 1454925862.8362
        "stop_memory" => integer 4644440
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8362
        "start_memory" => integer 4647960
        "stop_time" => float 1454925862.8363
        "stop_memory" => integer 4648560
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8366
        "start_memory" => integer 4664744
        "stop_time" => float 1454925862.8367
        "stop_memory" => integer 4665304
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8367
        "start_memory" => integer 4668776
        "stop_time" => float 1454925862.8368
        "stop_memory" => integer 4669368
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8369
        "start_memory" => integer 4674328
        "stop_time" => float 1454925862.8369
        "stop_memory" => integer 4674896
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.837
        "start_memory" => integer 4678392
        "stop_time" => float 1454925862.837
        "stop_memory" => integer 4678984
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8374
        "start_memory" => integer 4688696
        "stop_time" => float 1454925862.8374
        "stop_memory" => integer 4689280
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8375
        "start_memory" => integer 4692808
        "stop_time" => float 1454925862.8376
        "stop_memory" => integer 4693408
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8379
        "start_memory" => integer 4697728
        "stop_time" => float 1454925862.8379
        "stop_memory" => integer 4698304
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.838
        "start_memory" => integer 4701808
        "stop_time" => float 1454925862.838
        "stop_memory" => integer 4702408
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8384
        "start_memory" => integer 4712400
        "stop_time" => float 1454925862.8385
        "stop_memory" => integer 4712976
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8385
        "start_memory" => integer 4716480
        "stop_time" => float 1454925862.8386
        "stop_memory" => integer 4717080
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8391
        "start_memory" => integer 4742792
        "stop_time" => float 1454925862.8391
        "stop_memory" => integer 4743384
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8392
        "start_memory" => integer 4746936
        "stop_time" => float 1454925862.8392
        "stop_memory" => integer 4747528
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8402
        "start_memory" => integer 4758640
        "stop_time" => float 1454925862.8403
        "stop_memory" => integer 4759232
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8403
        "start_memory" => integer 4762792
        "stop_time" => float 1454925862.8404
        "stop_memory" => integer 4763400
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8414
        "start_memory" => integer 4772928
        "stop_time" => float 1454925862.8415
        "stop_memory" => integer 4773496
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8416
        "start_memory" => integer 4777016
        "stop_time" => float 1454925862.8416
        "stop_memory" => integer 4777616
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.842
        "start_memory" => integer 4795400
        "stop_time" => float 1454925862.842
        "stop_memory" => integer 4795992
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8421
        "start_memory" => integer 4799552
        "stop_time" => float 1454925862.8422
        "stop_memory" => integer 4800160
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8426
        "start_memory" => integer 4817072
        "stop_time" => float 1454925862.8426
        "stop_memory" => integer 4817656
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8427
        "start_memory" => integer 4821232
        "stop_time" => float 1454925862.8427
        "stop_memory" => integer 4821840
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8431
        "start_memory" => integer 4837408
        "stop_time" => float 1454925862.8431
        "stop_memory" => integer 4837992
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8432
        "start_memory" => integer 4841552
        "stop_time" => float 1454925862.8433
        "stop_memory" => integer 4842160
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8436
        "start_memory" => integer 4858856
        "stop_time" => float 1454925862.8437
        "stop_memory" => integer 4859424
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8437
        "start_memory" => integer 4862952
        "stop_time" => float 1454925862.8438
        "stop_memory" => integer 4863552
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8442
        "start_memory" => integer 4881144
        "stop_time" => float 1454925862.8442
        "stop_memory" => integer 4881720
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8443
        "start_memory" => integer 4885224
        "stop_time" => float 1454925862.8443
        "stop_memory" => integer 4885824
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8447
        "start_memory" => integer 4892856
        "stop_time" => float 1454925862.8447
        "stop_memory" => integer 4893432
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8448
        "start_memory" => integer 4896944
        "stop_time" => float 1454925862.8448
        "stop_memory" => integer 4897544
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8452
        "start_memory" => integer 4907792
        "stop_time" => float 1454925862.8453
        "stop_memory" => integer 4908384
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8453
        "start_memory" => integer 4911960
        "stop_time" => float 1454925862.8454
        "stop_memory" => integer 4912568
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8462
        "start_memory" => integer 4921136
        "stop_time" => float 1454925862.8463
        "stop_memory" => integer 4921720
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8463
        "start_memory" => integer 4925296
        "stop_time" => float 1454925862.8464
        "stop_memory" => integer 4925904
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8471
        "start_memory" => integer 4933512
        "stop_time" => float 1454925862.8472
        "stop_memory" => integer 4934080
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8472
        "start_memory" => integer 4937608
        "stop_time" => float 1454925862.8473
        "stop_memory" => integer 4938208
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8476
        "start_memory" => integer 4943752
        "stop_time" => float 1454925862.8477
        "stop_memory" => integer 4944328
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8478
        "start_memory" => integer 4947856
        "stop_time" => float 1454925862.8478
        "stop_memory" => integer 4948456
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8491
        "start_memory" => integer 4956952
        "stop_time" => float 1454925862.8491
        "stop_memory" => integer 4957528
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8492
        "start_memory" => integer 4961032
        "stop_time" => float 1454925862.8492
        "stop_memory" => integer 4961632
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8504
        "start_memory" => integer 5007416
        "stop_time" => float 1454925862.8505
        "stop_memory" => integer 5007960
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8506
        "start_memory" => integer 5011392
        "stop_time" => float 1454925862.8506
        "stop_memory" => integer 5011976
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8534
        "start_memory" => integer 5027016
        "stop_time" => float 1454925862.8535
        "stop_memory" => integer 5027576
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8536
        "start_memory" => integer 5031040
        "stop_time" => float 1454925862.8536
        "stop_memory" => integer 5031624
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8541
        "start_memory" => integer 5050136
        "stop_time" => float 1454925862.8542
        "stop_memory" => integer 5050696
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8542
        "start_memory" => integer 5054128
        "stop_time" => float 1454925862.8543
        "stop_memory" => integer 5054712
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8549
        "start_memory" => integer 5099080
        "stop_time" => float 1454925862.855
        "stop_memory" => integer 5099656
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.855
        "start_memory" => integer 5103136
        "stop_time" => float 1454925862.8551
        "stop_memory" => integer 5103728
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8555
        "start_memory" => integer 5124088
        "stop_time" => float 1454925862.8555
        "stop_memory" => integer 5124672
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8556
        "start_memory" => integer 5130232
        "stop_time" => float 1454925862.8556
        "stop_memory" => integer 5130832
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8566
        "start_memory" => integer 5181328
        "stop_time" => float 1454925862.8566
        "stop_memory" => integer 5181888
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8567
        "start_memory" => integer 5185384
        "stop_time" => float 1454925862.8568
        "stop_memory" => integer 5185976
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8572
        "start_memory" => integer 5208272
        "stop_time" => float 1454925862.8572
        "stop_memory" => integer 5208824
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8573
        "start_memory" => integer 5212248
        "stop_time" => float 1454925862.8574
        "stop_memory" => integer 5212816
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8582
        "start_memory" => integer 5285144
        "stop_time" => float 1454925862.8583
        "stop_memory" => integer 5285712
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8584
        "start_memory" => integer 5289144
        "stop_time" => float 1454925862.8584
        "stop_memory" => integer 5289728
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.862
        "start_memory" => integer 5312520
        "stop_time" => float 1454925862.8621
        "stop_memory" => integer 5313080
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8621
        "start_memory" => integer 5316528
        "stop_time" => float 1454925862.8622
        "stop_memory" => integer 5317112
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8634
        "start_memory" => integer 5462040
        "stop_time" => float 1454925862.8635
        "stop_memory" => integer 5462616
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8636
        "start_memory" => integer 5466144
        "stop_time" => float 1454925862.8636
        "stop_memory" => integer 5466736
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8643
        "start_memory" => integer 5481480
        "stop_time" => float 1454925862.8644
        "stop_memory" => integer 5482064
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1454925862.8646
        "start_memory" => integer 5450320
        "stop_time" => float 1454925862.8646
        "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'],
	);
}