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 1414801150.0639
        "start_memory" => integer 1696872
        "stop_time" => float 1414801150.3116
        "stop_memory" => integer 8469592
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0639
        "start_memory" => integer 1699688
        "stop_time" => float 1414801150.0641
        "stop_memory" => integer 1700280
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0651
        "start_memory" => integer 1828672
        "stop_time" => float 1414801150.0652
        "stop_memory" => integer 1829232
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0654
        "start_memory" => integer 1834664
        "stop_time" => float 1414801150.0654
        "stop_memory" => integer 1835248
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0656
        "start_memory" => integer 1845944
        "stop_time" => float 1414801150.0657
        "stop_memory" => integer 1846488
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0658
        "start_memory" => integer 1851376
        "stop_time" => float 1414801150.0659
        "stop_memory" => integer 1851952
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0662
        "start_memory" => integer 1855352
        "stop_time" => float 1414801150.0663
        "stop_memory" => integer 1855936
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0709
        "start_memory" => integer 2439720
        "stop_time" => float 1414801150.071
        "stop_memory" => integer 2440296
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0711
        "start_memory" => integer 2445168
        "stop_time" => float 1414801150.0712
        "stop_memory" => integer 2445808
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0718
        "start_memory" => integer 2591520
        "stop_time" => float 1414801150.0719
        "stop_memory" => integer 2592048
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.072
        "start_memory" => integer 2596696
        "stop_time" => float 1414801150.0721
        "stop_memory" => integer 2597264
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0727
        "start_memory" => integer 2629048
        "stop_time" => float 1414801150.0727
        "stop_memory" => integer 2629592
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0728
        "start_memory" => integer 2634240
        "stop_time" => float 1414801150.0729
        "stop_memory" => integer 2634808
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0741
        "start_memory" => integer 2801200
        "stop_time" => float 1414801150.0742
        "stop_memory" => integer 2801744
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0743
        "start_memory" => integer 2806384
        "stop_time" => float 1414801150.0744
        "stop_memory" => integer 2806952
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0748
        "start_memory" => integer 2861472
        "stop_time" => float 1414801150.0749
        "stop_memory" => integer 2862064
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0749
        "start_memory" => integer 2863984
        "stop_time" => float 1414801150.0749
        "stop_memory" => integer 2864672
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.075
        "start_memory" => integer 2869552
        "stop_time" => float 1414801150.0751
        "stop_memory" => integer 2870136
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0752
        "start_memory" => integer 2872840
        "stop_time" => float 1414801150.0753
        "stop_memory" => integer 2873400
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0753
        "start_memory" => integer 2878280
        "stop_time" => float 1414801150.0754
        "stop_memory" => integer 2878864
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0757
        "start_memory" => integer 2928384
        "stop_time" => float 1414801150.0757
        "stop_memory" => integer 2928928
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0758
        "start_memory" => integer 2933600
        "stop_time" => float 1414801150.0759
        "stop_memory" => integer 2934176
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0765
        "start_memory" => integer 3030536
        "stop_time" => float 1414801150.0766
        "stop_memory" => integer 3031072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0767
        "start_memory" => integer 3035712
        "stop_time" => float 1414801150.0768
        "stop_memory" => integer 3036280
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.0786
        "start_memory" => integer 3118856
        "stop_time" => float 1414801150.0787
        "stop_memory" => integer 3119448
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1339
        "start_memory" => integer 3158752
        "stop_time" => float 1414801150.1339
        "stop_memory" => integer 3159312
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.134
        "start_memory" => integer 3163976
        "stop_time" => float 1414801150.134
        "stop_memory" => integer 3164552
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1349
        "start_memory" => integer 3218472
        "stop_time" => float 1414801150.1349
        "stop_memory" => integer 3219024
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.135
        "start_memory" => integer 3223864
        "stop_time" => float 1414801150.135
        "stop_memory" => integer 3224440
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1356
        "start_memory" => integer 3249488
        "stop_time" => float 1414801150.1356
        "stop_memory" => integer 3250040
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1357
        "start_memory" => integer 3254752
        "stop_time" => float 1414801150.1357
        "stop_memory" => integer 3255328
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1364
        "start_memory" => integer 3328448
        "stop_time" => float 1414801150.1365
        "stop_memory" => integer 3329032
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1366
        "start_memory" => integer 3347024
        "stop_time" => float 1414801150.1366
        "stop_memory" => integer 3347840
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1367
        "start_memory" => integer 3352704
        "stop_time" => float 1414801150.1368
        "stop_memory" => integer 3353288
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1373
        "start_memory" => integer 3418424
        "stop_time" => float 1414801150.1374
        "stop_memory" => integer 3419000
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1376
        "start_memory" => integer 3438400
        "stop_time" => float 1414801150.1376
        "stop_memory" => integer 3438976
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.138
        "start_memory" => integer 3487040
        "stop_time" => float 1414801150.1381
        "stop_memory" => integer 3487616
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1383
        "start_memory" => integer 3499296
        "stop_time" => float 1414801150.1383
        "stop_memory" => integer 3499872
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1386
        "start_memory" => integer 3517896
        "stop_time" => float 1414801150.1387
        "stop_memory" => integer 3518472
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1389
        "start_memory" => integer 3528144
        "stop_time" => float 1414801150.1389
        "stop_memory" => integer 3528720
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1391
        "start_memory" => integer 3548848
        "stop_time" => float 1414801150.1391
        "stop_memory" => integer 3549424
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1394
        "start_memory" => integer 3569912
        "stop_time" => float 1414801150.1394
        "stop_memory" => integer 3570504
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1397
        "start_memory" => integer 3583728
        "stop_time" => float 1414801150.1397
        "stop_memory" => integer 3584296
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.14
        "start_memory" => integer 3596504
        "stop_time" => float 1414801150.14
        "stop_memory" => integer 3597080
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1403
        "start_memory" => integer 3645336
        "stop_time" => float 1414801150.1403
        "stop_memory" => integer 3645896
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1406
        "start_memory" => integer 3684368
        "stop_time" => float 1414801150.1407
        "stop_memory" => integer 3684952
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1409
        "start_memory" => integer 3704352
        "stop_time" => float 1414801150.1409
        "stop_memory" => integer 3704928
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1412
        "start_memory" => integer 3736104
        "stop_time" => float 1414801150.1413
        "stop_memory" => integer 3736680
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1416
        "start_memory" => integer 3755392
        "stop_time" => float 1414801150.1416
        "stop_memory" => integer 3755936
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1417
        "start_memory" => integer 3760608
        "stop_time" => float 1414801150.1417
        "stop_memory" => integer 3761184
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.15
        "start_memory" => integer 3881888
        "stop_time" => float 1414801150.15
        "stop_memory" => integer 3882440
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1501
        "start_memory" => integer 3887272
        "stop_time" => float 1414801150.1501
        "stop_memory" => integer 3887848
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1537
        "start_memory" => integer 3913320
        "stop_time" => float 1414801150.1537
        "stop_memory" => integer 3913904
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1538
        "start_memory" => integer 3918840
        "stop_time" => float 1414801150.1538
        "stop_memory" => integer 3919416
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1576
        "start_memory" => integer 3945000
        "stop_time" => float 1414801150.1577
        "stop_memory" => integer 3945560
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1578
        "start_memory" => integer 3950416
        "stop_time" => float 1414801150.1578
        "stop_memory" => integer 3950984
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1583
        "start_memory" => integer 4038368
        "stop_time" => float 1414801150.1583
        "stop_memory" => integer 4038968
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1629
        "start_memory" => integer 4045912
        "stop_time" => float 1414801150.163
        "stop_memory" => integer 4046464
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.163
        "start_memory" => integer 4051344
        "stop_time" => float 1414801150.1631
        "stop_memory" => integer 4051928
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.176
        "start_memory" => integer 4108736
        "stop_time" => float 1414801150.1761
        "stop_memory" => integer 4109296
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1762
        "start_memory" => integer 4114216
        "stop_time" => float 1414801150.1762
        "stop_memory" => integer 4114800
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1763
        "start_memory" => integer 4138080
        "stop_time" => float 1414801150.1764
        "stop_memory" => integer 4138656
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.177
        "start_memory" => integer 4147776
        "stop_time" => float 1414801150.177
        "stop_memory" => integer 4148336
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1771
        "start_memory" => integer 4153200
        "stop_time" => float 1414801150.1771
        "stop_memory" => integer 4153784
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.178
        "start_memory" => integer 4233256
        "stop_time" => float 1414801150.178
        "stop_memory" => integer 4234328
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1781
        "start_memory" => integer 4239232
        "stop_time" => float 1414801150.1781
        "stop_memory" => integer 4239816
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1827
        "start_memory" => integer 4265464
        "stop_time" => float 1414801150.1827
        "stop_memory" => integer 4266024
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1828
        "start_memory" => integer 4270888
        "stop_time" => float 1414801150.1828
        "stop_memory" => integer 4271472
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1835
        "start_memory" => integer 4292888
        "stop_time" => float 1414801150.1836
        "stop_memory" => integer 4293416
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1836
        "start_memory" => integer 4298064
        "stop_time" => float 1414801150.1837
        "stop_memory" => integer 4298632
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1859
        "start_memory" => integer 4309536
        "stop_time" => float 1414801150.186
        "stop_memory" => integer 4310128
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1865
        "start_memory" => integer 4320912
        "stop_time" => float 1414801150.1866
        "stop_memory" => integer 4321488
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1868
        "start_memory" => integer 4360112
        "stop_time" => float 1414801150.1868
        "stop_memory" => integer 4360600
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1883
        "start_memory" => integer 4361776
        "stop_time" => float 1414801150.1884
        "stop_memory" => integer 4362352
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1902
        "start_memory" => integer 4391384
        "stop_time" => float 1414801150.1903
        "stop_memory" => integer 4391928
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1904
        "start_memory" => integer 4396784
        "stop_time" => float 1414801150.1904
        "stop_memory" => integer 4397360
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1941
        "start_memory" => integer 4411872
        "stop_time" => float 1414801150.1941
        "stop_memory" => integer 4412448
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1956
        "start_memory" => integer 4417328
        "stop_time" => float 1414801150.1957
        "stop_memory" => integer 4417864
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1957
        "start_memory" => integer 4422512
        "stop_time" => float 1414801150.1958
        "stop_memory" => integer 4423080
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1966
        "start_memory" => integer 4450864
        "stop_time" => float 1414801150.1966
        "stop_memory" => integer 4451440
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1967
        "start_memory" => integer 4456280
        "stop_time" => float 1414801150.1968
        "stop_memory" => integer 4456864
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1995
        "start_memory" => integer 4576936
        "stop_time" => float 1414801150.1995
        "stop_memory" => integer 4577512
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1996
        "start_memory" => integer 4582464
        "stop_time" => float 1414801150.1997
        "stop_memory" => integer 4583056
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.1997
        "start_memory" => integer 4588216
        "stop_time" => float 1414801150.1998
        "stop_memory" => integer 4588752
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2004
        "start_memory" => integer 4608192
        "stop_time" => float 1414801150.2004
        "stop_memory" => integer 4608784
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2005
        "start_memory" => integer 4613744
        "stop_time" => float 1414801150.2005
        "stop_memory" => integer 4614336
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2019
        "start_memory" => integer 4620272
        "stop_time" => float 1414801150.202
        "stop_memory" => integer 4620824
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2021
        "start_memory" => integer 4625688
        "stop_time" => float 1414801150.2021
        "stop_memory" => integer 4626272
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2036
        "start_memory" => integer 4758168
        "stop_time" => float 1414801150.2036
        "stop_memory" => integer 4758744
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2037
        "start_memory" => integer 4763704
        "stop_time" => float 1414801150.2037
        "stop_memory" => integer 4764296
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2039
        "start_memory" => integer 4784976
        "stop_time" => float 1414801150.2039
        "stop_memory" => integer 4785544
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.204
        "start_memory" => integer 4790432
        "stop_time" => float 1414801150.2041
        "stop_memory" => integer 4791008
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2051
        "start_memory" => integer 4853040
        "stop_time" => float 1414801150.2051
        "stop_memory" => integer 4853600
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2052
        "start_memory" => integer 4858472
        "stop_time" => float 1414801150.2052
        "stop_memory" => integer 4859056
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.206
        "start_memory" => integer 4917272
        "stop_time" => float 1414801150.206
        "stop_memory" => integer 4917832
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2061
        "start_memory" => integer 4922696
        "stop_time" => float 1414801150.2061
        "stop_memory" => integer 4923280
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2071
        "start_memory" => integer 4965856
        "stop_time" => float 1414801150.2072
        "stop_memory" => integer 4966432
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2073
        "start_memory" => integer 4971400
        "stop_time" => float 1414801150.2074
        "stop_memory" => integer 4971992
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2083
        "start_memory" => integer 5021944
        "stop_time" => float 1414801150.2083
        "stop_memory" => integer 5022528
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2084
        "start_memory" => integer 5027592
        "stop_time" => float 1414801150.2084
        "stop_memory" => integer 5028192
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2086
        "start_memory" => integer 5048872
        "stop_time" => float 1414801150.2087
        "stop_memory" => integer 5049448
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2088
        "start_memory" => integer 5055520
        "stop_time" => float 1414801150.2088
        "stop_memory" => integer 5056120
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2097
        "start_memory" => integer 5119080
        "stop_time" => float 1414801150.2098
        "stop_memory" => integer 5119656
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2099
        "start_memory" => integer 5124720
        "stop_time" => float 1414801150.2099
        "stop_memory" => integer 5125320
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2109
        "start_memory" => integer 5172904
        "stop_time" => float 1414801150.211
        "stop_memory" => integer 5173480
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2111
        "start_memory" => integer 5178536
        "stop_time" => float 1414801150.2111
        "stop_memory" => integer 5179136
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.212
        "start_memory" => integer 5211200
        "stop_time" => float 1414801150.2121
        "stop_memory" => integer 5211776
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2121
        "start_memory" => integer 5216840
        "stop_time" => float 1414801150.2122
        "stop_memory" => integer 5217440
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2133
        "start_memory" => integer 5317264
        "stop_time" => float 1414801150.2133
        "stop_memory" => integer 5317840
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2135
        "start_memory" => integer 5322904
        "stop_time" => float 1414801150.2135
        "stop_memory" => integer 5323504
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2156
        "start_memory" => integer 5371400
        "stop_time" => float 1414801150.2156
        "stop_memory" => integer 5371960
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2157
        "start_memory" => integer 5376928
        "stop_time" => float 1414801150.2157
        "stop_memory" => integer 5377520
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2165
        "start_memory" => integer 5400648
        "stop_time" => float 1414801150.2166
        "stop_memory" => integer 5401168
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2167
        "start_memory" => integer 5405808
        "stop_time" => float 1414801150.2168
        "stop_memory" => integer 5406376
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2179
        "start_memory" => integer 5515448
        "stop_time" => float 1414801150.2179
        "stop_memory" => integer 5516008
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.218
        "start_memory" => integer 5520688
        "stop_time" => float 1414801150.218
        "stop_memory" => integer 5521264
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2223
        "start_memory" => integer 5541008
        "stop_time" => float 1414801150.2224
        "stop_memory" => integer 5541544
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2225
        "start_memory" => integer 5546208
        "stop_time" => float 1414801150.2225
        "stop_memory" => integer 5546776
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2253
        "start_memory" => integer 5583424
        "stop_time" => float 1414801150.2253
        "stop_memory" => integer 5583968
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2254
        "start_memory" => integer 5588608
        "stop_time" => float 1414801150.2255
        "stop_memory" => integer 5589176
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2261
        "start_memory" => integer 5631528
        "stop_time" => float 1414801150.2262
        "stop_memory" => integer 5632072
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2263
        "start_memory" => integer 5636720
        "stop_time" => float 1414801150.2264
        "stop_memory" => integer 5637288
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.227
        "start_memory" => integer 5666624
        "stop_time" => float 1414801150.2271
        "stop_memory" => integer 5667168
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2271
        "start_memory" => integer 5671808
        "stop_time" => float 1414801150.2272
        "stop_memory" => integer 5672376
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2286
        "start_memory" => integer 5747400
        "stop_time" => float 1414801150.2287
        "stop_memory" => integer 5747944
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2287
        "start_memory" => integer 5752608
        "stop_time" => float 1414801150.2288
        "stop_memory" => integer 5753176
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2309
        "start_memory" => integer 5775296
        "stop_time" => float 1414801150.231
        "stop_memory" => integer 5775840
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2311
        "start_memory" => integer 5780480
        "stop_time" => float 1414801150.2311
        "stop_memory" => integer 5781048
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2328
        "start_memory" => integer 5801896
        "stop_time" => float 1414801150.2328
        "stop_memory" => integer 5803480
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2329
        "start_memory" => integer 5808168
        "stop_time" => float 1414801150.233
        "stop_memory" => integer 5808744
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2343
        "start_memory" => integer 5936144
        "stop_time" => float 1414801150.2343
        "stop_memory" => integer 5936696
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2344
        "start_memory" => integer 5941376
        "stop_time" => float 1414801150.2344
        "stop_memory" => integer 5941952
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.236
        "start_memory" => integer 6108944
        "stop_time" => float 1414801150.236
        "stop_memory" => integer 6109496
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2361
        "start_memory" => integer 6114184
        "stop_time" => float 1414801150.2362
        "stop_memory" => integer 6114744
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2386
        "start_memory" => integer 6170312
        "stop_time" => float 1414801150.2387
        "stop_memory" => integer 6170888
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2388
        "start_memory" => integer 6175760
        "stop_time" => float 1414801150.2389
        "stop_memory" => integer 6176344
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2396
        "start_memory" => integer 6216408
        "stop_time" => float 1414801150.2396
        "stop_memory" => integer 6216984
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2397
        "start_memory" => integer 6221936
        "stop_time" => float 1414801150.2398
        "stop_memory" => integer 6222528
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.241
        "start_memory" => integer 6248472
        "stop_time" => float 1414801150.241
        "stop_memory" => integer 6249040
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2411
        "start_memory" => integer 6253912
        "stop_time" => float 1414801150.2411
        "stop_memory" => integer 6254488
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2431
        "start_memory" => integer 6280384
        "stop_time" => float 1414801150.2431
        "stop_memory" => integer 6280960
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2452
        "start_memory" => integer 6290456
        "stop_time" => float 1414801150.2452
        "stop_memory" => integer 6291032
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2504
        "start_memory" => integer 6327152
        "stop_time" => float 1414801150.2505
        "stop_memory" => integer 6327712
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2506
        "start_memory" => integer 6336184
        "stop_time" => float 1414801150.2507
        "stop_memory" => integer 6336672
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2521
        "start_memory" => integer 6336928
        "stop_time" => float 1414801150.2522
        "stop_memory" => integer 6337496
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2536
        "start_memory" => integer 6343968
        "stop_time" => float 1414801150.2536
        "stop_memory" => integer 6344536
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2547
        "start_memory" => integer 6356344
        "stop_time" => float 1414801150.2548
        "stop_memory" => integer 6356928
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2553
        "start_memory" => integer 6365680
        "stop_time" => float 1414801150.2553
        "stop_memory" => integer 6366256
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2558
        "start_memory" => integer 6369336
        "stop_time" => float 1414801150.2559
        "stop_memory" => integer 6369896
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2562
        "start_memory" => integer 6378240
        "stop_time" => float 1414801150.2562
        "stop_memory" => integer 6378808
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2565
        "start_memory" => integer 6387112
        "stop_time" => float 1414801150.2566
        "stop_memory" => integer 6387648
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2567
        "start_memory" => integer 6392296
        "stop_time" => float 1414801150.2567
        "stop_memory" => integer 6392864
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2573
        "start_memory" => integer 6402168
        "stop_time" => float 1414801150.2573
        "stop_memory" => integer 6402744
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2574
        "start_memory" => integer 6411440
        "stop_time" => float 1414801150.2575
        "stop_memory" => integer 6411976
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2575
        "start_memory" => integer 6416624
        "stop_time" => float 1414801150.2576
        "stop_memory" => integer 6417192
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2596
        "start_memory" => integer 6767576
        "stop_time" => float 1414801150.2597
        "stop_memory" => integer 6768152
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2604
        "start_memory" => integer 6851568
        "stop_time" => float 1414801150.2604
        "stop_memory" => integer 6852152
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2611
        "start_memory" => integer 6895312
        "stop_time" => float 1414801150.2611
        "stop_memory" => integer 6895856
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2617
        "start_memory" => integer 6925248
        "stop_time" => float 1414801150.2617
        "stop_memory" => integer 6925808
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2624
        "start_memory" => integer 6957712
        "stop_time" => float 1414801150.2624
        "stop_memory" => integer 6958288
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.263
        "start_memory" => integer 6988624
        "stop_time" => float 1414801150.2632
        "stop_memory" => integer 6989160
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2633
        "start_memory" => integer 6993808
        "stop_time" => float 1414801150.2634
        "stop_memory" => integer 6994376
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2642
        "start_memory" => integer 7005384
        "stop_time" => float 1414801150.2642
        "stop_memory" => integer 7005944
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2643
        "start_memory" => integer 7010640
        "stop_time" => float 1414801150.2644
        "stop_memory" => integer 7011216
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2656
        "start_memory" => integer 7054000
        "stop_time" => float 1414801150.2656
        "stop_memory" => integer 7054552
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2658
        "start_memory" => integer 7059224
        "stop_time" => float 1414801150.2659
        "stop_memory" => integer 7059800
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2667
        "start_memory" => integer 7073576
        "stop_time" => float 1414801150.2668
        "stop_memory" => integer 7074144
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2669
        "start_memory" => integer 7079016
        "stop_time" => float 1414801150.267
        "stop_memory" => integer 7079600
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2674
        "start_memory" => integer 7095296
        "stop_time" => float 1414801150.2674
        "stop_memory" => integer 7095856
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2676
        "start_memory" => integer 7100744
        "stop_time" => float 1414801150.2676
        "stop_memory" => integer 7101328
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2679
        "start_memory" => integer 7119408
        "stop_time" => float 1414801150.268
        "stop_memory" => integer 7119984
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2681
        "start_memory" => integer 7124976
        "stop_time" => float 1414801150.2682
        "stop_memory" => integer 7125568
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2684
        "start_memory" => integer 7131016
        "stop_time" => float 1414801150.2685
        "stop_memory" => integer 7131568
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2686
        "start_memory" => integer 7136448
        "stop_time" => float 1414801150.2687
        "stop_memory" => integer 7137032
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2688
        "start_memory" => integer 7145752
        "stop_time" => float 1414801150.2689
        "stop_memory" => integer 7146312
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.269
        "start_memory" => integer 7151184
        "stop_time" => float 1414801150.269
        "stop_memory" => integer 7151768
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2701
        "start_memory" => integer 7249360
        "stop_time" => float 1414801150.2701
        "stop_memory" => integer 7249936
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2702
        "start_memory" => integer 7254920
        "stop_time" => float 1414801150.2703
        "stop_memory" => integer 7255512
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2708
        "start_memory" => integer 7274352
        "stop_time" => float 1414801150.2709
        "stop_memory" => integer 7274936
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.271
        "start_memory" => integer 7279968
        "stop_time" => float 1414801150.271
        "stop_memory" => integer 7280552
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2716
        "start_memory" => integer 7297376
        "stop_time" => float 1414801150.2717
        "stop_memory" => integer 7297944
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2717
        "start_memory" => integer 7302888
        "stop_time" => float 1414801150.2718
        "stop_memory" => integer 7303480
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2724
        "start_memory" => integer 7322240
        "stop_time" => float 1414801150.2724
        "stop_memory" => integer 7322792
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2725
        "start_memory" => integer 7327656
        "stop_time" => float 1414801150.2726
        "stop_memory" => integer 7328240
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2727
        "start_memory" => integer 7335616
        "stop_time" => float 1414801150.2728
        "stop_memory" => integer 7336176
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2729
        "start_memory" => integer 7341048
        "stop_time" => float 1414801150.2729
        "stop_memory" => integer 7341632
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2734
        "start_memory" => integer 7354824
        "stop_time" => float 1414801150.2735
        "stop_memory" => integer 7355400
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2735
        "start_memory" => integer 7360352
        "stop_time" => float 1414801150.2736
        "stop_memory" => integer 7360944
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.274
        "start_memory" => integer 7365624
        "stop_time" => float 1414801150.2741
        "stop_memory" => integer 7366176
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2743
        "start_memory" => integer 7371056
        "stop_time" => float 1414801150.2743
        "stop_memory" => integer 7371640
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.275
        "start_memory" => integer 7386928
        "stop_time" => float 1414801150.275
        "stop_memory" => integer 7387488
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2751
        "start_memory" => integer 7392368
        "stop_time" => float 1414801150.2752
        "stop_memory" => integer 7392952
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2758
        "start_memory" => integer 7430936
        "stop_time" => float 1414801150.2758
        "stop_memory" => integer 7431512
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2759
        "start_memory" => integer 7436472
        "stop_time" => float 1414801150.276
        "stop_memory" => integer 7437064
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2772
        "start_memory" => integer 7450792
        "stop_time" => float 1414801150.2772
        "stop_memory" => integer 7451360
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2773
        "start_memory" => integer 7456328
        "stop_time" => float 1414801150.2773
        "stop_memory" => integer 7456920
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2787
        "start_memory" => integer 7467256
        "stop_time" => float 1414801150.2787
        "stop_memory" => integer 7467824
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2788
        "start_memory" => integer 7472768
        "stop_time" => float 1414801150.2789
        "stop_memory" => integer 7473360
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2794
        "start_memory" => integer 7493720
        "stop_time" => float 1414801150.2795
        "stop_memory" => integer 7494288
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2796
        "start_memory" => integer 7499256
        "stop_time" => float 1414801150.2796
        "stop_memory" => integer 7499848
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2801
        "start_memory" => integer 7519176
        "stop_time" => float 1414801150.2802
        "stop_memory" => integer 7519744
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2803
        "start_memory" => integer 7524768
        "stop_time" => float 1414801150.2803
        "stop_memory" => integer 7525360
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2808
        "start_memory" => integer 7542576
        "stop_time" => float 1414801150.2808
        "stop_memory" => integer 7543144
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2809
        "start_memory" => integer 7548112
        "stop_time" => float 1414801150.281
        "stop_memory" => integer 7548704
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2816
        "start_memory" => integer 7567040
        "stop_time" => float 1414801150.2816
        "stop_memory" => integer 7567608
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2817
        "start_memory" => integer 7572560
        "stop_time" => float 1414801150.2817
        "stop_memory" => integer 7573152
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2823
        "start_memory" => integer 7593288
        "stop_time" => float 1414801150.2823
        "stop_memory" => integer 7593840
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2824
        "start_memory" => integer 7598720
        "stop_time" => float 1414801150.2824
        "stop_memory" => integer 7599304
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.283
        "start_memory" => integer 7609672
        "stop_time" => float 1414801150.283
        "stop_memory" => integer 7610232
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2831
        "start_memory" => integer 7615120
        "stop_time" => float 1414801150.2831
        "stop_memory" => integer 7615704
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2837
        "start_memory" => integer 7631200
        "stop_time" => float 1414801150.2837
        "stop_memory" => integer 7631776
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2838
        "start_memory" => integer 7636792
        "stop_time" => float 1414801150.2838
        "stop_memory" => integer 7637384
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2849
        "start_memory" => integer 7648856
        "stop_time" => float 1414801150.285
        "stop_memory" => integer 7649424
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.285
        "start_memory" => integer 7654440
        "stop_time" => float 1414801150.2851
        "stop_memory" => integer 7655032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2862
        "start_memory" => integer 7664832
        "stop_time" => float 1414801150.2863
        "stop_memory" => integer 7665400
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2863
        "start_memory" => integer 7670336
        "stop_time" => float 1414801150.2864
        "stop_memory" => integer 7670912
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2869
        "start_memory" => integer 7677096
        "stop_time" => float 1414801150.287
        "stop_memory" => integer 7677696
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2871
        "start_memory" => integer 7682648
        "stop_time" => float 1414801150.2871
        "stop_memory" => integer 7683240
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2891
        "start_memory" => integer 7693096
        "stop_time" => float 1414801150.2891
        "stop_memory" => integer 7693648
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2892
        "start_memory" => integer 7698528
        "stop_time" => float 1414801150.2893
        "stop_memory" => integer 7699112
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2908
        "start_memory" => integer 7773512
        "stop_time" => float 1414801150.2909
        "stop_memory" => integer 7774040
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2909
        "start_memory" => integer 7778712
        "stop_time" => float 1414801150.291
        "stop_memory" => integer 7779280
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2946
        "start_memory" => integer 7805312
        "stop_time" => float 1414801150.2947
        "stop_memory" => integer 7805856
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2948
        "start_memory" => integer 7810512
        "stop_time" => float 1414801150.2949
        "stop_memory" => integer 7811080
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2956
        "start_memory" => integer 7842864
        "stop_time" => float 1414801150.2956
        "stop_memory" => integer 7843408
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2957
        "start_memory" => integer 7848056
        "stop_time" => float 1414801150.2958
        "stop_memory" => integer 7848624
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2966
        "start_memory" => integer 7914920
        "stop_time" => float 1414801150.2966
        "stop_memory" => integer 7915480
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2967
        "start_memory" => integer 7920336
        "stop_time" => float 1414801150.2968
        "stop_memory" => integer 7920912
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2975
        "start_memory" => integer 7944360
        "stop_time" => float 1414801150.2975
        "stop_memory" => integer 7944944
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2976
        "start_memory" => integer 7951912
        "stop_time" => float 1414801150.2977
        "stop_memory" => integer 7952504
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2988
        "start_memory" => integer 8025224
        "stop_time" => float 1414801150.2989
        "stop_memory" => integer 8025760
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.299
        "start_memory" => integer 8030608
        "stop_time" => float 1414801150.2991
        "stop_memory" => integer 8031184
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2998
        "start_memory" => integer 8058912
        "stop_time" => float 1414801150.2998
        "stop_memory" => integer 8059448
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.2999
        "start_memory" => integer 8064088
        "stop_time" => float 1414801150.3
        "stop_memory" => integer 8064656
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3013
        "start_memory" => integer 8185536
        "stop_time" => float 1414801150.3014
        "stop_memory" => integer 8186080
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3015
        "start_memory" => integer 8190752
        "stop_time" => float 1414801150.3015
        "stop_memory" => integer 8191320
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3072
        "start_memory" => integer 8230048
        "stop_time" => float 1414801150.3072
        "stop_memory" => integer 8230592
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3074
        "start_memory" => integer 8235248
        "stop_time" => float 1414801150.3075
        "stop_memory" => integer 8235816
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3094
        "start_memory" => integer 8476720
        "stop_time" => float 1414801150.3095
        "stop_memory" => integer 8477296
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3096
        "start_memory" => integer 8482232
        "stop_time" => float 1414801150.3097
        "stop_memory" => integer 8482816
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3109
        "start_memory" => integer 8500856
        "stop_time" => float 1414801150.311
        "stop_memory" => integer 8501432
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1414801150.3113
        "start_memory" => integer 8468096
        "stop_time" => float 1414801150.3114
        "stop_memory" => integer 8470208
    )
)

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