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 1464653398.3492
        "start_memory" => integer 901408
        "stop_time" => float 1464653398.5727
        "stop_memory" => integer 5455584
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3493
        "start_memory" => integer 903712
        "stop_time" => float 1464653398.3493
        "stop_memory" => integer 904400
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3501
        "start_memory" => integer 981112
        "stop_time" => float 1464653398.3501
        "stop_memory" => integer 981672
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3502
        "start_memory" => integer 985688
        "stop_time" => float 1464653398.3502
        "stop_memory" => integer 986280
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3504
        "start_memory" => integer 993912
        "stop_time" => float 1464653398.3504
        "stop_memory" => integer 994464
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3505
        "start_memory" => integer 998104
        "stop_time" => float 1464653398.3505
        "stop_memory" => integer 998688
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3507
        "start_memory" => integer 1001896
        "stop_time" => float 1464653398.3508
        "stop_memory" => integer 1002488
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.354
        "start_memory" => integer 1323072
        "stop_time" => float 1464653398.3541
        "stop_memory" => integer 1323608
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3542
        "start_memory" => integer 1327016
        "stop_time" => float 1464653398.3542
        "stop_memory" => integer 1327656
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3545
        "start_memory" => integer 1346432
        "stop_time" => float 1464653398.3546
        "stop_memory" => integer 1347016
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3547
        "start_memory" => integer 1350432
        "stop_time" => float 1464653398.3547
        "stop_memory" => integer 1351008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3555
        "start_memory" => integer 1450352
        "stop_time" => float 1464653398.3556
        "stop_memory" => integer 1450952
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3557
        "start_memory" => integer 1454456
        "stop_time" => float 1464653398.3557
        "stop_memory" => integer 1455056
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3563
        "start_memory" => integer 1567952
        "stop_time" => float 1464653398.3563
        "stop_memory" => integer 1568496
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3564
        "start_memory" => integer 1571920
        "stop_time" => float 1464653398.3565
        "stop_memory" => integer 1572488
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3568
        "start_memory" => integer 1606536
        "stop_time" => float 1464653398.3568
        "stop_memory" => integer 1607136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3569
        "start_memory" => integer 1609672
        "stop_time" => float 1464653398.3569
        "stop_memory" => integer 1610384
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.357
        "start_memory" => integer 1613896
        "stop_time" => float 1464653398.3571
        "stop_memory" => integer 1614496
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3572
        "start_memory" => integer 1616184
        "stop_time" => float 1464653398.3572
        "stop_memory" => integer 1616784
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3573
        "start_memory" => integer 1620304
        "stop_time" => float 1464653398.3573
        "stop_memory" => integer 1620880
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3576
        "start_memory" => integer 1650304
        "stop_time" => float 1464653398.3577
        "stop_memory" => integer 1650864
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3577
        "start_memory" => integer 1654360
        "stop_time" => float 1464653398.3578
        "stop_memory" => integer 1654952
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3585
        "start_memory" => integer 1716152
        "stop_time" => float 1464653398.3585
        "stop_memory" => integer 1716704
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3586
        "start_memory" => integer 1720152
        "stop_time" => float 1464653398.3587
        "stop_memory" => integer 1720720
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.3603
        "start_memory" => integer 1778512
        "stop_time" => float 1464653398.3605
        "stop_memory" => integer 1779128
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4301
        "start_memory" => integer 1817080
        "stop_time" => float 1464653398.4302
        "stop_memory" => integer 1817648
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4303
        "start_memory" => integer 1821072
        "stop_time" => float 1464653398.4303
        "stop_memory" => integer 1821656
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4311
        "start_memory" => integer 1855744
        "stop_time" => float 1464653398.4311
        "stop_memory" => integer 1856320
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4312
        "start_memory" => integer 1859800
        "stop_time" => float 1464653398.4312
        "stop_memory" => integer 1860392
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4317
        "start_memory" => integer 1879016
        "stop_time" => float 1464653398.4318
        "stop_memory" => integer 1879584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4318
        "start_memory" => integer 1883048
        "stop_time" => float 1464653398.4319
        "stop_memory" => integer 1883640
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4326
        "start_memory" => integer 1930976
        "stop_time" => float 1464653398.4326
        "stop_memory" => integer 1931576
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4328
        "start_memory" => integer 1943112
        "stop_time" => float 1464653398.4328
        "stop_memory" => integer 1943944
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4329
        "start_memory" => integer 1947464
        "stop_time" => float 1464653398.433
        "stop_memory" => integer 1948048
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4336
        "start_memory" => integer 1986072
        "stop_time" => float 1464653398.4336
        "stop_memory" => integer 1986672
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4338
        "start_memory" => integer 1998744
        "stop_time" => float 1464653398.4339
        "stop_memory" => integer 1999320
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4344
        "start_memory" => integer 2026320
        "stop_time" => float 1464653398.4344
        "stop_memory" => integer 2026920
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4346
        "start_memory" => integer 2035728
        "stop_time" => float 1464653398.4346
        "stop_memory" => integer 2036304
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4348
        "start_memory" => integer 2049464
        "stop_time" => float 1464653398.4349
        "stop_memory" => integer 2050064
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4351
        "start_memory" => integer 2057080
        "stop_time" => float 1464653398.4351
        "stop_memory" => integer 2057672
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4354
        "start_memory" => integer 2070976
        "stop_time" => float 1464653398.4354
        "stop_memory" => integer 2071568
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4356
        "start_memory" => integer 2085200
        "stop_time" => float 1464653398.4356
        "stop_memory" => integer 2085792
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4358
        "start_memory" => integer 2095272
        "stop_time" => float 1464653398.4359
        "stop_memory" => integer 2095864
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4361
        "start_memory" => integer 2104536
        "stop_time" => float 1464653398.4361
        "stop_memory" => integer 2105128
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4364
        "start_memory" => integer 2150464
        "stop_time" => float 1464653398.4365
        "stop_memory" => integer 2151040
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4368
        "start_memory" => integer 2173968
        "stop_time" => float 1464653398.4368
        "stop_memory" => integer 2174568
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.437
        "start_memory" => integer 2187864
        "stop_time" => float 1464653398.437
        "stop_memory" => integer 2188440
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4373
        "start_memory" => integer 2207640
        "stop_time" => float 1464653398.4373
        "stop_memory" => integer 2208224
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4376
        "start_memory" => integer 2221896
        "stop_time" => float 1464653398.4376
        "stop_memory" => integer 2222464
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4377
        "start_memory" => integer 2225920
        "stop_time" => float 1464653398.4377
        "stop_memory" => integer 2226496
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4453
        "start_memory" => integer 2316984
        "stop_time" => float 1464653398.4453
        "stop_memory" => integer 2317560
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4454
        "start_memory" => integer 2321048
        "stop_time" => float 1464653398.4455
        "stop_memory" => integer 2321640
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4485
        "start_memory" => integer 2340752
        "stop_time" => float 1464653398.4486
        "stop_memory" => integer 2341336
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4486
        "start_memory" => integer 2344864
        "stop_time" => float 1464653398.4487
        "stop_memory" => integer 2345464
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4518
        "start_memory" => integer 2364624
        "stop_time" => float 1464653398.4519
        "stop_memory" => integer 2365184
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4519
        "start_memory" => integer 2368664
        "stop_time" => float 1464653398.452
        "stop_memory" => integer 2369256
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4525
        "start_memory" => integer 2422912
        "stop_time" => float 1464653398.4526
        "stop_memory" => integer 2423512
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.456
        "start_memory" => integer 2430832
        "stop_time" => float 1464653398.456
        "stop_memory" => integer 2431408
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4561
        "start_memory" => integer 2434936
        "stop_time" => float 1464653398.4561
        "stop_memory" => integer 2435536
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4669
        "start_memory" => integer 2475208
        "stop_time" => float 1464653398.4669
        "stop_memory" => integer 2475784
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.467
        "start_memory" => integer 2479312
        "stop_time" => float 1464653398.467
        "stop_memory" => integer 2479912
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4672
        "start_memory" => integer 2495544
        "stop_time" => float 1464653398.4672
        "stop_memory" => integer 2496120
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4677
        "start_memory" => integer 2503456
        "stop_time" => float 1464653398.4677
        "stop_memory" => integer 2504024
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4678
        "start_memory" => integer 2507496
        "stop_time" => float 1464653398.4678
        "stop_memory" => integer 2508088
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4685
        "start_memory" => integer 2557544
        "stop_time" => float 1464653398.4686
        "stop_memory" => integer 2558640
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4687
        "start_memory" => integer 2562144
        "stop_time" => float 1464653398.4687
        "stop_memory" => integer 2562744
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4731
        "start_memory" => integer 2582128
        "stop_time" => float 1464653398.4731
        "stop_memory" => integer 2582688
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4732
        "start_memory" => integer 2586160
        "stop_time" => float 1464653398.4733
        "stop_memory" => integer 2586752
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4738
        "start_memory" => integer 2601936
        "stop_time" => float 1464653398.4739
        "stop_memory" => integer 2602472
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.474
        "start_memory" => integer 2605880
        "stop_time" => float 1464653398.474
        "stop_memory" => integer 2606456
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4762
        "start_memory" => integer 2613176
        "stop_time" => float 1464653398.4763
        "stop_memory" => integer 2613792
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4767
        "start_memory" => integer 2621256
        "stop_time" => float 1464653398.4768
        "stop_memory" => integer 2621848
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.477
        "start_memory" => integer 2646464
        "stop_time" => float 1464653398.4771
        "stop_memory" => integer 2646968
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4784
        "start_memory" => integer 2648248
        "stop_time" => float 1464653398.4784
        "stop_memory" => integer 2648840
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4798
        "start_memory" => integer 2667640
        "stop_time" => float 1464653398.4799
        "stop_memory" => integer 2668200
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4799
        "start_memory" => integer 2671712
        "stop_time" => float 1464653398.48
        "stop_memory" => integer 2672304
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4825
        "start_memory" => integer 2683720
        "stop_time" => float 1464653398.4825
        "stop_memory" => integer 2684304
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4836
        "start_memory" => integer 2688304
        "stop_time" => float 1464653398.4837
        "stop_memory" => integer 2688856
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4837
        "start_memory" => integer 2692288
        "stop_time" => float 1464653398.4838
        "stop_memory" => integer 2692872
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4842
        "start_memory" => integer 2710264
        "stop_time" => float 1464653398.4843
        "stop_memory" => integer 2710840
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4843
        "start_memory" => integer 2714304
        "stop_time" => float 1464653398.4844
        "stop_memory" => integer 2714896
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4861
        "start_memory" => integer 2801128
        "stop_time" => float 1464653398.4862
        "stop_memory" => integer 2801728
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4862
        "start_memory" => integer 2805280
        "stop_time" => float 1464653398.4863
        "stop_memory" => integer 2805872
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4863
        "start_memory" => integer 2809600
        "stop_time" => float 1464653398.4864
        "stop_memory" => integer 2810160
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4868
        "start_memory" => integer 2827008
        "stop_time" => float 1464653398.4869
        "stop_memory" => integer 2827616
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4869
        "start_memory" => integer 2831168
        "stop_time" => float 1464653398.487
        "stop_memory" => integer 2831776
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.488
        "start_memory" => integer 2836808
        "stop_time" => float 1464653398.4881
        "stop_memory" => integer 2837376
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4881
        "start_memory" => integer 2840880
        "stop_time" => float 1464653398.4882
        "stop_memory" => integer 2841480
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4892
        "start_memory" => integer 2928896
        "stop_time" => float 1464653398.4892
        "stop_memory" => integer 2929488
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4893
        "start_memory" => integer 2933040
        "stop_time" => float 1464653398.4893
        "stop_memory" => integer 2933648
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4895
        "start_memory" => integer 2945680
        "stop_time" => float 1464653398.4895
        "stop_memory" => integer 2946248
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4896
        "start_memory" => integer 2949768
        "stop_time" => float 1464653398.4896
        "stop_memory" => integer 2950392
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4904
        "start_memory" => integer 2993768
        "stop_time" => float 1464653398.4904
        "stop_memory" => integer 2994344
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4905
        "start_memory" => integer 2997864
        "stop_time" => float 1464653398.4905
        "stop_memory" => integer 2998464
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4912
        "start_memory" => integer 3037936
        "stop_time" => float 1464653398.4912
        "stop_memory" => integer 3038512
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4913
        "start_memory" => integer 3042016
        "stop_time" => float 1464653398.4913
        "stop_memory" => integer 3042616
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.492
        "start_memory" => integer 3069768
        "stop_time" => float 1464653398.4921
        "stop_memory" => integer 3070360
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4922
        "start_memory" => integer 3073920
        "stop_time" => float 1464653398.4922
        "stop_memory" => integer 3074528
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4929
        "start_memory" => integer 3105776
        "stop_time" => float 1464653398.493
        "stop_memory" => integer 3106376
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.493
        "start_memory" => integer 3109984
        "stop_time" => float 1464653398.4931
        "stop_memory" => integer 3110600
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4932
        "start_memory" => integer 3123776
        "stop_time" => float 1464653398.4933
        "stop_memory" => integer 3124368
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4934
        "start_memory" => integer 3129008
        "stop_time" => float 1464653398.4934
        "stop_memory" => integer 3129624
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4942
        "start_memory" => integer 3180208
        "stop_time" => float 1464653398.4942
        "stop_memory" => integer 3180800
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4943
        "start_memory" => integer 3184408
        "stop_time" => float 1464653398.4943
        "stop_memory" => integer 3185024
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4951
        "start_memory" => integer 3216912
        "stop_time" => float 1464653398.4951
        "stop_memory" => integer 3217504
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4952
        "start_memory" => integer 3221104
        "stop_time" => float 1464653398.4952
        "stop_memory" => integer 3221720
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4959
        "start_memory" => integer 3245000
        "stop_time" => float 1464653398.4959
        "stop_memory" => integer 3245592
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.496
        "start_memory" => integer 3249200
        "stop_time" => float 1464653398.4961
        "stop_memory" => integer 3249816
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4971
        "start_memory" => integer 3317672
        "stop_time" => float 1464653398.4971
        "stop_memory" => integer 3318264
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4972
        "start_memory" => integer 3321872
        "stop_time" => float 1464653398.4972
        "stop_memory" => integer 3322488
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4988
        "start_memory" => integer 3358256
        "stop_time" => float 1464653398.4989
        "stop_memory" => integer 3358832
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.499
        "start_memory" => integer 3362392
        "stop_time" => float 1464653398.499
        "stop_memory" => integer 3363000
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4996
        "start_memory" => integer 3381328
        "stop_time" => float 1464653398.4997
        "stop_memory" => integer 3381864
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.4998
        "start_memory" => integer 3385312
        "stop_time" => float 1464653398.4998
        "stop_memory" => integer 3385880
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5007
        "start_memory" => integer 3451728
        "stop_time" => float 1464653398.5008
        "stop_memory" => integer 3452312
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5008
        "start_memory" => integer 3455768
        "stop_time" => float 1464653398.5009
        "stop_memory" => integer 3456344
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5038
        "start_memory" => integer 3470000
        "stop_time" => float 1464653398.5039
        "stop_memory" => integer 3470560
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.504
        "start_memory" => integer 3473992
        "stop_time" => float 1464653398.504
        "stop_memory" => integer 3474576
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.506
        "start_memory" => integer 3496376
        "stop_time" => float 1464653398.5061
        "stop_memory" => integer 3496936
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5062
        "start_memory" => integer 3500360
        "stop_time" => float 1464653398.5062
        "stop_memory" => integer 3500928
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5068
        "start_memory" => integer 3524008
        "stop_time" => float 1464653398.5069
        "stop_memory" => integer 3524576
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.507
        "start_memory" => integer 3528000
        "stop_time" => float 1464653398.507
        "stop_memory" => integer 3528568
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5075
        "start_memory" => integer 3546008
        "stop_time" => float 1464653398.5076
        "stop_memory" => integer 3546576
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5076
        "start_memory" => integer 3550000
        "stop_time" => float 1464653398.5077
        "stop_memory" => integer 3550568
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5087
        "start_memory" => integer 3597176
        "stop_time" => float 1464653398.5088
        "stop_memory" => integer 3597744
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5088
        "start_memory" => integer 3601184
        "stop_time" => float 1464653398.5089
        "stop_memory" => integer 3601768
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5104
        "start_memory" => integer 3616280
        "stop_time" => float 1464653398.5105
        "stop_memory" => integer 3616840
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5106
        "start_memory" => integer 3620288
        "stop_time" => float 1464653398.5106
        "stop_memory" => integer 3620856
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5119
        "start_memory" => integer 3633832
        "stop_time" => float 1464653398.5119
        "stop_memory" => integer 3635440
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.512
        "start_memory" => integer 3638920
        "stop_time" => float 1464653398.5121
        "stop_memory" => integer 3639496
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5131
        "start_memory" => integer 3718424
        "stop_time" => float 1464653398.5132
        "stop_memory" => integer 3719000
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5132
        "start_memory" => integer 3722464
        "stop_time" => float 1464653398.5133
        "stop_memory" => integer 3723056
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5146
        "start_memory" => integer 3821984
        "stop_time" => float 1464653398.5146
        "stop_memory" => integer 3822536
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5147
        "start_memory" => integer 3825992
        "stop_time" => float 1464653398.5148
        "stop_memory" => integer 3826576
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5165
        "start_memory" => integer 3859464
        "stop_time" => float 1464653398.5166
        "stop_memory" => integer 3860056
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5167
        "start_memory" => integer 3863552
        "stop_time" => float 1464653398.5167
        "stop_memory" => integer 3864152
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5173
        "start_memory" => integer 3889712
        "stop_time" => float 1464653398.5173
        "stop_memory" => integer 3890304
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5174
        "start_memory" => integer 3893880
        "stop_time" => float 1464653398.5175
        "stop_memory" => integer 3894488
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5184
        "start_memory" => integer 3913192
        "stop_time" => float 1464653398.5185
        "stop_memory" => integer 3913760
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5186
        "start_memory" => integer 3917264
        "stop_time" => float 1464653398.5186
        "stop_memory" => integer 3917864
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5201
        "start_memory" => integer 3936592
        "stop_time" => float 1464653398.5201
        "stop_memory" => integer 3937184
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5217
        "start_memory" => integer 3945608
        "stop_time" => float 1464653398.5217
        "stop_memory" => integer 3946200
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5253
        "start_memory" => integer 3972568
        "stop_time" => float 1464653398.5254
        "stop_memory" => integer 3973128
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5255
        "start_memory" => integer 3978792
        "stop_time" => float 1464653398.5255
        "stop_memory" => integer 3979296
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5265
        "start_memory" => integer 3979648
        "stop_time" => float 1464653398.5266
        "stop_memory" => integer 3980224
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5276
        "start_memory" => integer 3984576
        "stop_time" => float 1464653398.5277
        "stop_memory" => integer 3985152
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5284
        "start_memory" => integer 3993640
        "stop_time" => float 1464653398.5285
        "stop_memory" => integer 3994248
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5289
        "start_memory" => integer 4001936
        "stop_time" => float 1464653398.5289
        "stop_memory" => integer 4002512
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5292
        "start_memory" => integer 4004904
        "stop_time" => float 1464653398.5293
        "stop_memory" => integer 4005488
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5295
        "start_memory" => integer 4012784
        "stop_time" => float 1464653398.5296
        "stop_memory" => integer 4013368
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5297
        "start_memory" => integer 4020648
        "stop_time" => float 1464653398.5298
        "stop_memory" => integer 4021200
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5299
        "start_memory" => integer 4024632
        "stop_time" => float 1464653398.5299
        "stop_memory" => integer 4025216
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5304
        "start_memory" => integer 4031464
        "stop_time" => float 1464653398.5304
        "stop_memory" => integer 4032056
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5305
        "start_memory" => integer 4039232
        "stop_time" => float 1464653398.5305
        "stop_memory" => integer 4039784
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5306
        "start_memory" => integer 4043240
        "stop_time" => float 1464653398.5306
        "stop_memory" => integer 4043824
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5325
        "start_memory" => integer 4258848
        "stop_time" => float 1464653398.5326
        "stop_memory" => integer 4259440
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5332
        "start_memory" => integer 4319888
        "stop_time" => float 1464653398.5332
        "stop_memory" => integer 4320472
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5337
        "start_memory" => integer 4352160
        "stop_time" => float 1464653398.5337
        "stop_memory" => integer 4352728
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5341
        "start_memory" => integer 4376000
        "stop_time" => float 1464653398.5341
        "stop_memory" => integer 4376576
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5345
        "start_memory" => integer 4402328
        "stop_time" => float 1464653398.5345
        "stop_memory" => integer 4402920
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5349
        "start_memory" => integer 4426944
        "stop_time" => float 1464653398.535
        "stop_memory" => integer 4427480
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.535
        "start_memory" => integer 4430888
        "stop_time" => float 1464653398.5351
        "stop_memory" => integer 4431464
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5356
        "start_memory" => integer 4438080
        "stop_time" => float 1464653398.5356
        "stop_memory" => integer 4438664
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5357
        "start_memory" => integer 4442120
        "stop_time" => float 1464653398.5357
        "stop_memory" => integer 4442696
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5363
        "start_memory" => integer 4467576
        "stop_time" => float 1464653398.5364
        "stop_memory" => integer 4468152
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5364
        "start_memory" => integer 4471608
        "stop_time" => float 1464653398.5365
        "stop_memory" => integer 4472200
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5369
        "start_memory" => integer 4482904
        "stop_time" => float 1464653398.5369
        "stop_memory" => integer 4483488
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.537
        "start_memory" => integer 4486992
        "stop_time" => float 1464653398.537
        "stop_memory" => integer 4487576
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5372
        "start_memory" => integer 4497904
        "stop_time" => float 1464653398.5373
        "stop_memory" => integer 4498488
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5374
        "start_memory" => integer 4502016
        "stop_time" => float 1464653398.5374
        "stop_memory" => integer 4502600
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5376
        "start_memory" => integer 4515048
        "stop_time" => float 1464653398.5377
        "stop_memory" => integer 4515640
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5378
        "start_memory" => integer 4519208
        "stop_time" => float 1464653398.5378
        "stop_memory" => integer 4519816
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.538
        "start_memory" => integer 4525112
        "stop_time" => float 1464653398.538
        "stop_memory" => integer 4525680
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5381
        "start_memory" => integer 4529192
        "stop_time" => float 1464653398.5381
        "stop_memory" => integer 4529792
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5382
        "start_memory" => integer 4535736
        "stop_time" => float 1464653398.5383
        "stop_memory" => integer 4536312
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5383
        "start_memory" => integer 4539816
        "stop_time" => float 1464653398.5384
        "stop_memory" => integer 4540400
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5392
        "start_memory" => integer 4605528
        "stop_time" => float 1464653398.5392
        "stop_memory" => integer 4606128
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5393
        "start_memory" => integer 4609688
        "stop_time" => float 1464653398.5394
        "stop_memory" => integer 4610296
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5398
        "start_memory" => integer 4626656
        "stop_time" => float 1464653398.5398
        "stop_memory" => integer 4627240
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5399
        "start_memory" => integer 4630816
        "stop_time" => float 1464653398.5399
        "stop_memory" => integer 4631424
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5404
        "start_memory" => integer 4646616
        "stop_time" => float 1464653398.5404
        "stop_memory" => integer 4647184
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5405
        "start_memory" => integer 4650704
        "stop_time" => float 1464653398.5406
        "stop_memory" => integer 4651304
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.541
        "start_memory" => integer 4667488
        "stop_time" => float 1464653398.5411
        "stop_memory" => integer 4668048
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5412
        "start_memory" => integer 4671520
        "stop_time" => float 1464653398.5412
        "stop_memory" => integer 4672112
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5413
        "start_memory" => integer 4677072
        "stop_time" => float 1464653398.5413
        "stop_memory" => integer 4677640
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5414
        "start_memory" => integer 4681136
        "stop_time" => float 1464653398.5415
        "stop_memory" => integer 4681728
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5419
        "start_memory" => integer 4691440
        "stop_time" => float 1464653398.5419
        "stop_memory" => integer 4692024
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.542
        "start_memory" => integer 4695552
        "stop_time" => float 1464653398.5421
        "stop_memory" => integer 4696152
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5424
        "start_memory" => integer 4700472
        "stop_time" => float 1464653398.5425
        "stop_memory" => integer 4701048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5425
        "start_memory" => integer 4704552
        "stop_time" => float 1464653398.5426
        "stop_memory" => integer 4705152
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.543
        "start_memory" => integer 4715144
        "stop_time" => float 1464653398.5431
        "stop_memory" => integer 4715720
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5431
        "start_memory" => integer 4719224
        "stop_time" => float 1464653398.5432
        "stop_memory" => integer 4719824
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5437
        "start_memory" => integer 4745536
        "stop_time" => float 1464653398.5438
        "stop_memory" => integer 4746128
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5438
        "start_memory" => integer 4749680
        "stop_time" => float 1464653398.5439
        "stop_memory" => integer 4750272
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5449
        "start_memory" => integer 4761344
        "stop_time" => float 1464653398.545
        "stop_memory" => integer 4761936
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.545
        "start_memory" => integer 4765496
        "stop_time" => float 1464653398.5451
        "stop_memory" => integer 4766104
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5462
        "start_memory" => integer 4775632
        "stop_time" => float 1464653398.5462
        "stop_memory" => integer 4776200
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5463
        "start_memory" => integer 4779720
        "stop_time" => float 1464653398.5463
        "stop_memory" => integer 4780320
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5468
        "start_memory" => integer 4798104
        "stop_time" => float 1464653398.5468
        "stop_memory" => integer 4798696
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5469
        "start_memory" => integer 4802256
        "stop_time" => float 1464653398.5469
        "stop_memory" => integer 4802864
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5474
        "start_memory" => integer 4819776
        "stop_time" => float 1464653398.5474
        "stop_memory" => integer 4820360
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5475
        "start_memory" => integer 4823936
        "stop_time" => float 1464653398.5475
        "stop_memory" => integer 4824544
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5479
        "start_memory" => integer 4840112
        "stop_time" => float 1464653398.548
        "stop_memory" => integer 4840696
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5481
        "start_memory" => integer 4844256
        "stop_time" => float 1464653398.5481
        "stop_memory" => integer 4844864
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5485
        "start_memory" => integer 4861544
        "stop_time" => float 1464653398.5486
        "stop_memory" => integer 4862112
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5486
        "start_memory" => integer 4865640
        "stop_time" => float 1464653398.5487
        "stop_memory" => integer 4866240
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5491
        "start_memory" => integer 4883832
        "stop_time" => float 1464653398.5492
        "stop_memory" => integer 4884408
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5492
        "start_memory" => integer 4887912
        "stop_time" => float 1464653398.5493
        "stop_memory" => integer 4888512
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5497
        "start_memory" => integer 4895544
        "stop_time" => float 1464653398.5497
        "stop_memory" => integer 4896120
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5498
        "start_memory" => integer 4899632
        "stop_time" => float 1464653398.5498
        "stop_memory" => integer 4900232
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5503
        "start_memory" => integer 4910480
        "stop_time" => float 1464653398.5503
        "stop_memory" => integer 4911072
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5504
        "start_memory" => integer 4914648
        "stop_time" => float 1464653398.5504
        "stop_memory" => integer 4915256
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5514
        "start_memory" => integer 4923824
        "stop_time" => float 1464653398.5515
        "stop_memory" => integer 4924408
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5516
        "start_memory" => integer 4927984
        "stop_time" => float 1464653398.5516
        "stop_memory" => integer 4928592
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5524
        "start_memory" => integer 4936200
        "stop_time" => float 1464653398.5524
        "stop_memory" => integer 4936768
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5525
        "start_memory" => integer 4940296
        "stop_time" => float 1464653398.5526
        "stop_memory" => integer 4940896
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.553
        "start_memory" => integer 4946440
        "stop_time" => float 1464653398.553
        "stop_memory" => integer 4947016
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5531
        "start_memory" => integer 4950544
        "stop_time" => float 1464653398.5531
        "stop_memory" => integer 4951144
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5545
        "start_memory" => integer 4959640
        "stop_time" => float 1464653398.5545
        "stop_memory" => integer 4960216
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5546
        "start_memory" => integer 4963720
        "stop_time" => float 1464653398.5547
        "stop_memory" => integer 4964320
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.556
        "start_memory" => integer 5010088
        "stop_time" => float 1464653398.556
        "stop_memory" => integer 5010632
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5561
        "start_memory" => integer 5014064
        "stop_time" => float 1464653398.5562
        "stop_memory" => integer 5014648
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5594
        "start_memory" => integer 5029688
        "stop_time" => float 1464653398.5594
        "stop_memory" => integer 5030248
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5595
        "start_memory" => integer 5033712
        "stop_time" => float 1464653398.5596
        "stop_memory" => integer 5034296
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5601
        "start_memory" => integer 5052800
        "stop_time" => float 1464653398.5602
        "stop_memory" => integer 5053360
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5603
        "start_memory" => integer 5056792
        "stop_time" => float 1464653398.5604
        "stop_memory" => integer 5057376
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5612
        "start_memory" => integer 5101800
        "stop_time" => float 1464653398.5613
        "stop_memory" => integer 5102376
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5614
        "start_memory" => integer 5105856
        "stop_time" => float 1464653398.5614
        "stop_memory" => integer 5106448
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5619
        "start_memory" => integer 5126808
        "stop_time" => float 1464653398.5619
        "stop_memory" => integer 5127392
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.562
        "start_memory" => integer 5132952
        "stop_time" => float 1464653398.562
        "stop_memory" => integer 5133552
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5633
        "start_memory" => integer 5184048
        "stop_time" => float 1464653398.5634
        "stop_memory" => integer 5184608
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5635
        "start_memory" => integer 5188104
        "stop_time" => float 1464653398.5636
        "stop_memory" => integer 5188696
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5641
        "start_memory" => integer 5210952
        "stop_time" => float 1464653398.5642
        "stop_memory" => integer 5211504
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5643
        "start_memory" => integer 5214936
        "stop_time" => float 1464653398.5643
        "stop_memory" => integer 5215504
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5654
        "start_memory" => integer 5287792
        "stop_time" => float 1464653398.5654
        "stop_memory" => integer 5288360
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5655
        "start_memory" => integer 5291792
        "stop_time" => float 1464653398.5656
        "stop_memory" => integer 5292376
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5696
        "start_memory" => integer 5315184
        "stop_time" => float 1464653398.5696
        "stop_memory" => integer 5315744
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5697
        "start_memory" => integer 5319184
        "stop_time" => float 1464653398.5698
        "stop_memory" => integer 5319768
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5713
        "start_memory" => integer 5464568
        "stop_time" => float 1464653398.5713
        "stop_memory" => integer 5465144
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5714
        "start_memory" => integer 5468672
        "stop_time" => float 1464653398.5715
        "stop_memory" => integer 5469264
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5722
        "start_memory" => integer 5484696
        "stop_time" => float 1464653398.5723
        "stop_memory" => integer 5485280
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1464653398.5725
        "start_memory" => integer 5453528
        "stop_time" => float 1464653398.5726
        "stop_memory" => integer 5455968
    )
)

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