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 1436244707.3287
        "start_memory" => integer 901408
        "stop_time" => float 1436244707.5663
        "stop_memory" => integer 5452448
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3287
        "start_memory" => integer 903712
        "stop_time" => float 1436244707.3288
        "stop_memory" => integer 904400
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3298
        "start_memory" => integer 981112
        "stop_time" => float 1436244707.3298
        "stop_memory" => integer 981672
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3299
        "start_memory" => integer 985688
        "stop_time" => float 1436244707.33
        "stop_memory" => integer 986280
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3301
        "start_memory" => integer 993912
        "stop_time" => float 1436244707.3301
        "stop_memory" => integer 994464
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3302
        "start_memory" => integer 998104
        "stop_time" => float 1436244707.3305
        "stop_memory" => integer 998688
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3307
        "start_memory" => integer 1001896
        "stop_time" => float 1436244707.3308
        "stop_memory" => integer 1002488
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3351
        "start_memory" => integer 1323072
        "stop_time" => float 1436244707.3352
        "stop_memory" => integer 1323608
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3355
        "start_memory" => integer 1327016
        "stop_time" => float 1436244707.3356
        "stop_memory" => integer 1327656
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3359
        "start_memory" => integer 1346432
        "stop_time" => float 1436244707.3359
        "stop_memory" => integer 1347016
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.336
        "start_memory" => integer 1350432
        "stop_time" => float 1436244707.336
        "stop_memory" => integer 1351008
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3371
        "start_memory" => integer 1450352
        "stop_time" => float 1436244707.3372
        "stop_memory" => integer 1450952
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3372
        "start_memory" => integer 1454456
        "stop_time" => float 1436244707.3375
        "stop_memory" => integer 1455056
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3381
        "start_memory" => integer 1567952
        "stop_time" => float 1436244707.3382
        "stop_memory" => integer 1568496
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3385
        "start_memory" => integer 1571920
        "stop_time" => float 1436244707.3385
        "stop_memory" => integer 1572488
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3389
        "start_memory" => integer 1606536
        "stop_time" => float 1436244707.339
        "stop_memory" => integer 1607136
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.339
        "start_memory" => integer 1609672
        "stop_time" => float 1436244707.339
        "stop_memory" => integer 1610384
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3391
        "start_memory" => integer 1613896
        "stop_time" => float 1436244707.3392
        "stop_memory" => integer 1614496
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3395
        "start_memory" => integer 1616184
        "stop_time" => float 1436244707.3396
        "stop_memory" => integer 1616784
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3396
        "start_memory" => integer 1620304
        "stop_time" => float 1436244707.3397
        "stop_memory" => integer 1620880
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.34
        "start_memory" => integer 1650304
        "stop_time" => float 1436244707.34
        "stop_memory" => integer 1650864
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3401
        "start_memory" => integer 1654360
        "stop_time" => float 1436244707.3402
        "stop_memory" => integer 1654952
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.341
        "start_memory" => integer 1716152
        "stop_time" => float 1436244707.3411
        "stop_memory" => integer 1716704
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3412
        "start_memory" => integer 1720152
        "stop_time" => float 1436244707.3412
        "stop_memory" => integer 1720720
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.3436
        "start_memory" => integer 1778512
        "stop_time" => float 1436244707.3436
        "stop_memory" => integer 1779128
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4289
        "start_memory" => integer 1817080
        "stop_time" => float 1436244707.4289
        "stop_memory" => integer 1817648
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4291
        "start_memory" => integer 1821072
        "stop_time" => float 1436244707.4291
        "stop_memory" => integer 1821656
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4298
        "start_memory" => integer 1855744
        "stop_time" => float 1436244707.4299
        "stop_memory" => integer 1856320
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4299
        "start_memory" => integer 1859800
        "stop_time" => float 1436244707.4299
        "stop_memory" => integer 1860392
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4304
        "start_memory" => integer 1879016
        "stop_time" => float 1436244707.4305
        "stop_memory" => integer 1879584
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4306
        "start_memory" => integer 1883048
        "stop_time" => float 1436244707.4306
        "stop_memory" => integer 1883640
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4313
        "start_memory" => integer 1930952
        "stop_time" => float 1436244707.4313
        "stop_memory" => integer 1931552
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4315
        "start_memory" => integer 1943088
        "stop_time" => float 1436244707.4315
        "stop_memory" => integer 1943920
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4315
        "start_memory" => integer 1947432
        "stop_time" => float 1436244707.4316
        "stop_memory" => integer 1948016
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4321
        "start_memory" => integer 1986024
        "stop_time" => float 1436244707.4321
        "stop_memory" => integer 1986624
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4324
        "start_memory" => integer 1998696
        "stop_time" => float 1436244707.4324
        "stop_memory" => integer 1999272
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4328
        "start_memory" => integer 2026272
        "stop_time" => float 1436244707.4328
        "stop_memory" => integer 2026872
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.433
        "start_memory" => integer 2035704
        "stop_time" => float 1436244707.433
        "stop_memory" => integer 2036280
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4332
        "start_memory" => integer 2049416
        "stop_time" => float 1436244707.4332
        "stop_memory" => integer 2050016
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4334
        "start_memory" => integer 2057032
        "stop_time" => float 1436244707.4335
        "stop_memory" => integer 2057624
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4338
        "start_memory" => integer 2070912
        "stop_time" => float 1436244707.4339
        "stop_memory" => integer 2071504
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4341
        "start_memory" => integer 2085144
        "stop_time" => float 1436244707.4341
        "stop_memory" => integer 2085736
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4343
        "start_memory" => integer 2095216
        "stop_time" => float 1436244707.4343
        "stop_memory" => integer 2095808
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4345
        "start_memory" => integer 2104480
        "stop_time" => float 1436244707.4345
        "stop_memory" => integer 2105072
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4348
        "start_memory" => integer 2150392
        "stop_time" => float 1436244707.4348
        "stop_memory" => integer 2150968
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4352
        "start_memory" => integer 2173896
        "stop_time" => float 1436244707.4352
        "stop_memory" => integer 2174496
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4354
        "start_memory" => integer 2187792
        "stop_time" => float 1436244707.4354
        "stop_memory" => integer 2188368
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4357
        "start_memory" => integer 2207568
        "stop_time" => float 1436244707.4357
        "stop_memory" => integer 2208152
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.436
        "start_memory" => integer 2221784
        "stop_time" => float 1436244707.436
        "stop_memory" => integer 2222352
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4361
        "start_memory" => integer 2225808
        "stop_time" => float 1436244707.4361
        "stop_memory" => integer 2226384
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4432
        "start_memory" => integer 2316880
        "stop_time" => float 1436244707.4433
        "stop_memory" => integer 2317456
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4434
        "start_memory" => integer 2320936
        "stop_time" => float 1436244707.4434
        "stop_memory" => integer 2321528
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4465
        "start_memory" => integer 2340616
        "stop_time" => float 1436244707.4465
        "stop_memory" => integer 2341200
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4466
        "start_memory" => integer 2344728
        "stop_time" => float 1436244707.4467
        "stop_memory" => integer 2345328
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4497
        "start_memory" => integer 2364480
        "stop_time" => float 1436244707.4498
        "stop_memory" => integer 2365040
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4499
        "start_memory" => integer 2368520
        "stop_time" => float 1436244707.4499
        "stop_memory" => integer 2369112
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4505
        "start_memory" => integer 2422744
        "stop_time" => float 1436244707.4506
        "stop_memory" => integer 2423344
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4538
        "start_memory" => integer 2430664
        "stop_time" => float 1436244707.4539
        "stop_memory" => integer 2431240
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.454
        "start_memory" => integer 2434768
        "stop_time" => float 1436244707.454
        "stop_memory" => integer 2435368
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.464
        "start_memory" => integer 2475000
        "stop_time" => float 1436244707.464
        "stop_memory" => integer 2475576
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4641
        "start_memory" => integer 2479104
        "stop_time" => float 1436244707.4641
        "stop_memory" => integer 2479704
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4643
        "start_memory" => integer 2495296
        "stop_time" => float 1436244707.4643
        "stop_memory" => integer 2495872
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4647
        "start_memory" => integer 2503184
        "stop_time" => float 1436244707.4647
        "stop_memory" => integer 2503752
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4648
        "start_memory" => integer 2507224
        "stop_time" => float 1436244707.4648
        "stop_memory" => integer 2507816
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4656
        "start_memory" => integer 2557312
        "stop_time" => float 1436244707.4656
        "stop_memory" => integer 2558408
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4657
        "start_memory" => integer 2561912
        "stop_time" => float 1436244707.4657
        "stop_memory" => integer 2562512
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4693
        "start_memory" => integer 2581896
        "stop_time" => float 1436244707.4693
        "stop_memory" => integer 2582456
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4694
        "start_memory" => integer 2585952
        "stop_time" => float 1436244707.4694
        "stop_memory" => integer 2586544
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4705
        "start_memory" => integer 2601704
        "stop_time" => float 1436244707.4706
        "stop_memory" => integer 2602240
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4707
        "start_memory" => integer 2605648
        "stop_time" => float 1436244707.4707
        "stop_memory" => integer 2606224
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4724
        "start_memory" => integer 2612944
        "stop_time" => float 1436244707.4724
        "stop_memory" => integer 2613560
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4728
        "start_memory" => integer 2621024
        "stop_time" => float 1436244707.4728
        "stop_memory" => integer 2621616
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4731
        "start_memory" => integer 2646232
        "stop_time" => float 1436244707.4731
        "stop_memory" => integer 2646736
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4743
        "start_memory" => integer 2648016
        "stop_time" => float 1436244707.4743
        "stop_memory" => integer 2648608
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4756
        "start_memory" => integer 2667392
        "stop_time" => float 1436244707.4757
        "stop_memory" => integer 2667952
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4757
        "start_memory" => integer 2671448
        "stop_time" => float 1436244707.4758
        "stop_memory" => integer 2672040
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4781
        "start_memory" => integer 2683456
        "stop_time" => float 1436244707.4781
        "stop_memory" => integer 2684040
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4791
        "start_memory" => integer 2688040
        "stop_time" => float 1436244707.4792
        "stop_memory" => integer 2688592
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4792
        "start_memory" => integer 2692024
        "stop_time" => float 1436244707.4793
        "stop_memory" => integer 2692608
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4797
        "start_memory" => integer 2709976
        "stop_time" => float 1436244707.4798
        "stop_memory" => integer 2710552
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4798
        "start_memory" => integer 2714016
        "stop_time" => float 1436244707.4799
        "stop_memory" => integer 2714608
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4815
        "start_memory" => integer 2800840
        "stop_time" => float 1436244707.4816
        "stop_memory" => integer 2801440
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4816
        "start_memory" => integer 2804992
        "stop_time" => float 1436244707.4817
        "stop_memory" => integer 2805584
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4817
        "start_memory" => integer 2809312
        "stop_time" => float 1436244707.4818
        "stop_memory" => integer 2809872
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4822
        "start_memory" => integer 2825688
        "stop_time" => float 1436244707.4822
        "stop_memory" => integer 2826296
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4823
        "start_memory" => integer 2829848
        "stop_time" => float 1436244707.4823
        "stop_memory" => integer 2830456
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4833
        "start_memory" => integer 2835496
        "stop_time" => float 1436244707.4834
        "stop_memory" => integer 2836064
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4835
        "start_memory" => integer 2839568
        "stop_time" => float 1436244707.4835
        "stop_memory" => integer 2840168
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4845
        "start_memory" => integer 2927616
        "stop_time" => float 1436244707.4845
        "stop_memory" => integer 2928208
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4846
        "start_memory" => integer 2931760
        "stop_time" => float 1436244707.4847
        "stop_memory" => integer 2932368
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4848
        "start_memory" => integer 2944400
        "stop_time" => float 1436244707.4848
        "stop_memory" => integer 2944968
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4849
        "start_memory" => integer 2948488
        "stop_time" => float 1436244707.4849
        "stop_memory" => integer 2949112
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4857
        "start_memory" => integer 2992496
        "stop_time" => float 1436244707.4858
        "stop_memory" => integer 2993072
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4858
        "start_memory" => integer 2996592
        "stop_time" => float 1436244707.4859
        "stop_memory" => integer 2997192
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4865
        "start_memory" => integer 3036664
        "stop_time" => float 1436244707.4865
        "stop_memory" => integer 3037240
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4866
        "start_memory" => integer 3040744
        "stop_time" => float 1436244707.4866
        "stop_memory" => integer 3041344
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4873
        "start_memory" => integer 3068496
        "stop_time" => float 1436244707.4874
        "stop_memory" => integer 3069088
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4875
        "start_memory" => integer 3072648
        "stop_time" => float 1436244707.4875
        "stop_memory" => integer 3073256
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4882
        "start_memory" => integer 3104504
        "stop_time" => float 1436244707.4882
        "stop_memory" => integer 3105104
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4883
        "start_memory" => integer 3108712
        "stop_time" => float 1436244707.4884
        "stop_memory" => integer 3109328
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4885
        "start_memory" => integer 3122504
        "stop_time" => float 1436244707.4886
        "stop_memory" => integer 3123096
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4887
        "start_memory" => integer 3127736
        "stop_time" => float 1436244707.4887
        "stop_memory" => integer 3128352
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4894
        "start_memory" => integer 3178936
        "stop_time" => float 1436244707.4895
        "stop_memory" => integer 3179528
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4895
        "start_memory" => integer 3183136
        "stop_time" => float 1436244707.4896
        "stop_memory" => integer 3183752
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4903
        "start_memory" => integer 3215640
        "stop_time" => float 1436244707.4903
        "stop_memory" => integer 3216232
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4904
        "start_memory" => integer 3219832
        "stop_time" => float 1436244707.4905
        "stop_memory" => integer 3220448
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4911
        "start_memory" => integer 3243744
        "stop_time" => float 1436244707.4911
        "stop_memory" => integer 3244336
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4912
        "start_memory" => integer 3247944
        "stop_time" => float 1436244707.4913
        "stop_memory" => integer 3248560
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4922
        "start_memory" => integer 3316400
        "stop_time" => float 1436244707.4922
        "stop_memory" => integer 3316992
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4923
        "start_memory" => integer 3320600
        "stop_time" => float 1436244707.4924
        "stop_memory" => integer 3321216
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4939
        "start_memory" => integer 3356992
        "stop_time" => float 1436244707.494
        "stop_memory" => integer 3357568
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.494
        "start_memory" => integer 3361128
        "stop_time" => float 1436244707.4941
        "stop_memory" => integer 3361736
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4948
        "start_memory" => integer 3380064
        "stop_time" => float 1436244707.4948
        "stop_memory" => integer 3380600
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4949
        "start_memory" => integer 3384024
        "stop_time" => float 1436244707.495
        "stop_memory" => integer 3384592
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4959
        "start_memory" => integer 3450416
        "stop_time" => float 1436244707.496
        "stop_memory" => integer 3451000
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.496
        "start_memory" => integer 3454456
        "stop_time" => float 1436244707.4961
        "stop_memory" => integer 3455032
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4989
        "start_memory" => integer 3468664
        "stop_time" => float 1436244707.499
        "stop_memory" => integer 3469224
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.4991
        "start_memory" => integer 3472656
        "stop_time" => float 1436244707.4991
        "stop_memory" => integer 3473240
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5011
        "start_memory" => integer 3495040
        "stop_time" => float 1436244707.5012
        "stop_memory" => integer 3495600
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5012
        "start_memory" => integer 3499024
        "stop_time" => float 1436244707.5013
        "stop_memory" => integer 3499592
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5019
        "start_memory" => integer 3522672
        "stop_time" => float 1436244707.502
        "stop_memory" => integer 3523240
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.502
        "start_memory" => integer 3526664
        "stop_time" => float 1436244707.5021
        "stop_memory" => integer 3527232
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5026
        "start_memory" => integer 3544672
        "stop_time" => float 1436244707.5027
        "stop_memory" => integer 3545240
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5027
        "start_memory" => integer 3548664
        "stop_time" => float 1436244707.5028
        "stop_memory" => integer 3549232
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5038
        "start_memory" => integer 3595864
        "stop_time" => float 1436244707.5038
        "stop_memory" => integer 3596432
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5039
        "start_memory" => integer 3599872
        "stop_time" => float 1436244707.504
        "stop_memory" => integer 3600456
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5055
        "start_memory" => integer 3614968
        "stop_time" => float 1436244707.5055
        "stop_memory" => integer 3615528
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5056
        "start_memory" => integer 3618976
        "stop_time" => float 1436244707.5057
        "stop_memory" => integer 3619544
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5069
        "start_memory" => integer 3632520
        "stop_time" => float 1436244707.507
        "stop_memory" => integer 3634128
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5071
        "start_memory" => integer 3637608
        "stop_time" => float 1436244707.5071
        "stop_memory" => integer 3638184
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5083
        "start_memory" => integer 3717112
        "stop_time" => float 1436244707.5083
        "stop_memory" => integer 3717688
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5084
        "start_memory" => integer 3721152
        "stop_time" => float 1436244707.5085
        "stop_memory" => integer 3721744
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5098
        "start_memory" => integer 3820696
        "stop_time" => float 1436244707.5098
        "stop_memory" => integer 3821248
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5099
        "start_memory" => integer 3824704
        "stop_time" => float 1436244707.51
        "stop_memory" => integer 3825288
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5117
        "start_memory" => integer 3858200
        "stop_time" => float 1436244707.5118
        "stop_memory" => integer 3858792
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.512
        "start_memory" => integer 3862288
        "stop_time" => float 1436244707.512
        "stop_memory" => integer 3862888
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5126
        "start_memory" => integer 3888496
        "stop_time" => float 1436244707.5127
        "stop_memory" => integer 3889088
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5127
        "start_memory" => integer 3892664
        "stop_time" => float 1436244707.5128
        "stop_memory" => integer 3893272
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5137
        "start_memory" => integer 3911976
        "stop_time" => float 1436244707.5138
        "stop_memory" => integer 3912544
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5138
        "start_memory" => integer 3916072
        "stop_time" => float 1436244707.5139
        "stop_memory" => integer 3916672
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5153
        "start_memory" => integer 3935392
        "stop_time" => float 1436244707.5153
        "stop_memory" => integer 3935984
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5168
        "start_memory" => integer 3944064
        "stop_time" => float 1436244707.5168
        "stop_memory" => integer 3944656
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5203
        "start_memory" => integer 3971024
        "stop_time" => float 1436244707.5203
        "stop_memory" => integer 3971584
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5205
        "start_memory" => integer 3977248
        "stop_time" => float 1436244707.5205
        "stop_memory" => integer 3977752
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5215
        "start_memory" => integer 3978104
        "stop_time" => float 1436244707.5215
        "stop_memory" => integer 3978680
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5225
        "start_memory" => integer 3983032
        "stop_time" => float 1436244707.5226
        "stop_memory" => integer 3983608
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5233
        "start_memory" => integer 3992096
        "stop_time" => float 1436244707.5233
        "stop_memory" => integer 3992704
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5237
        "start_memory" => integer 4000048
        "stop_time" => float 1436244707.5237
        "stop_memory" => integer 4000624
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5241
        "start_memory" => integer 4003016
        "stop_time" => float 1436244707.5241
        "stop_memory" => integer 4003600
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5243
        "start_memory" => integer 4010536
        "stop_time" => float 1436244707.5244
        "stop_memory" => integer 4011120
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5246
        "start_memory" => integer 4018032
        "stop_time" => float 1436244707.5246
        "stop_memory" => integer 4018584
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5247
        "start_memory" => integer 4022024
        "stop_time" => float 1436244707.5247
        "stop_memory" => integer 4022608
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5252
        "start_memory" => integer 4028824
        "stop_time" => float 1436244707.5252
        "stop_memory" => integer 4029416
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5253
        "start_memory" => integer 4036600
        "stop_time" => float 1436244707.5253
        "stop_memory" => integer 4037152
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5254
        "start_memory" => integer 4040592
        "stop_time" => float 1436244707.5254
        "stop_memory" => integer 4041176
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5274
        "start_memory" => integer 4256192
        "stop_time" => float 1436244707.5274
        "stop_memory" => integer 4256784
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.528
        "start_memory" => integer 4317232
        "stop_time" => float 1436244707.5281
        "stop_memory" => integer 4317816
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5285
        "start_memory" => integer 4349504
        "stop_time" => float 1436244707.5286
        "stop_memory" => integer 4350072
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5289
        "start_memory" => integer 4373344
        "stop_time" => float 1436244707.5289
        "stop_memory" => integer 4373920
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5293
        "start_memory" => integer 4399672
        "stop_time" => float 1436244707.5293
        "stop_memory" => integer 4400264
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5297
        "start_memory" => integer 4424288
        "stop_time" => float 1436244707.5298
        "stop_memory" => integer 4424824
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5298
        "start_memory" => integer 4428232
        "stop_time" => float 1436244707.5299
        "stop_memory" => integer 4428808
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5304
        "start_memory" => integer 4435464
        "stop_time" => float 1436244707.5304
        "stop_memory" => integer 4436048
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5305
        "start_memory" => integer 4439504
        "stop_time" => float 1436244707.5305
        "stop_memory" => integer 4440080
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5311
        "start_memory" => integer 4464952
        "stop_time" => float 1436244707.5312
        "stop_memory" => integer 4465528
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5313
        "start_memory" => integer 4468984
        "stop_time" => float 1436244707.5313
        "stop_memory" => integer 4469576
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.532
        "start_memory" => integer 4480280
        "stop_time" => float 1436244707.5321
        "stop_memory" => integer 4480864
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5322
        "start_memory" => integer 4484368
        "stop_time" => float 1436244707.5323
        "stop_memory" => integer 4484952
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5326
        "start_memory" => integer 4495280
        "stop_time" => float 1436244707.5327
        "stop_memory" => integer 4495864
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5328
        "start_memory" => integer 4499392
        "stop_time" => float 1436244707.5329
        "stop_memory" => integer 4499976
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5332
        "start_memory" => integer 4512432
        "stop_time" => float 1436244707.5333
        "stop_memory" => integer 4513032
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5334
        "start_memory" => integer 4516592
        "stop_time" => float 1436244707.5335
        "stop_memory" => integer 4517208
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5337
        "start_memory" => integer 4522520
        "stop_time" => float 1436244707.5338
        "stop_memory" => integer 4523088
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5339
        "start_memory" => integer 4526600
        "stop_time" => float 1436244707.534
        "stop_memory" => integer 4527200
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5341
        "start_memory" => integer 4533144
        "stop_time" => float 1436244707.5342
        "stop_memory" => integer 4533720
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5343
        "start_memory" => integer 4537248
        "stop_time" => float 1436244707.5343
        "stop_memory" => integer 4537832
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5355
        "start_memory" => integer 4602952
        "stop_time" => float 1436244707.5356
        "stop_memory" => integer 4603552
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5357
        "start_memory" => integer 4607112
        "stop_time" => float 1436244707.5357
        "stop_memory" => integer 4607720
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5361
        "start_memory" => integer 4624080
        "stop_time" => float 1436244707.5362
        "stop_memory" => integer 4624664
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5362
        "start_memory" => integer 4628240
        "stop_time" => float 1436244707.5363
        "stop_memory" => integer 4628848
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5367
        "start_memory" => integer 4644040
        "stop_time" => float 1436244707.5367
        "stop_memory" => integer 4644608
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5368
        "start_memory" => integer 4648128
        "stop_time" => float 1436244707.5368
        "stop_memory" => integer 4648728
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5372
        "start_memory" => integer 4664912
        "stop_time" => float 1436244707.5373
        "stop_memory" => integer 4665472
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5374
        "start_memory" => integer 4668944
        "stop_time" => float 1436244707.5374
        "stop_memory" => integer 4669536
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5375
        "start_memory" => integer 4674496
        "stop_time" => float 1436244707.5375
        "stop_memory" => integer 4675064
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5376
        "start_memory" => integer 4678560
        "stop_time" => float 1436244707.5377
        "stop_memory" => integer 4679152
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5381
        "start_memory" => integer 4688864
        "stop_time" => float 1436244707.5381
        "stop_memory" => integer 4689448
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5382
        "start_memory" => integer 4692976
        "stop_time" => float 1436244707.5382
        "stop_memory" => integer 4693576
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5386
        "start_memory" => integer 4697896
        "stop_time" => float 1436244707.5386
        "stop_memory" => integer 4698472
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5387
        "start_memory" => integer 4701976
        "stop_time" => float 1436244707.5387
        "stop_memory" => integer 4702576
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5391
        "start_memory" => integer 4712568
        "stop_time" => float 1436244707.5392
        "stop_memory" => integer 4713144
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5393
        "start_memory" => integer 4716648
        "stop_time" => float 1436244707.5393
        "stop_memory" => integer 4717248
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5398
        "start_memory" => integer 4742960
        "stop_time" => float 1436244707.5399
        "stop_memory" => integer 4743552
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.54
        "start_memory" => integer 4747104
        "stop_time" => float 1436244707.54
        "stop_memory" => integer 4747696
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.541
        "start_memory" => integer 4758784
        "stop_time" => float 1436244707.541
        "stop_memory" => integer 4759376
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5411
        "start_memory" => integer 4762936
        "stop_time" => float 1436244707.5411
        "stop_memory" => integer 4763544
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5422
        "start_memory" => integer 4773072
        "stop_time" => float 1436244707.5422
        "stop_memory" => integer 4773640
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5423
        "start_memory" => integer 4777160
        "stop_time" => float 1436244707.5423
        "stop_memory" => integer 4777760
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5427
        "start_memory" => integer 4795544
        "stop_time" => float 1436244707.5428
        "stop_memory" => integer 4796136
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5429
        "start_memory" => integer 4799696
        "stop_time" => float 1436244707.5429
        "stop_memory" => integer 4800304
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5433
        "start_memory" => integer 4817216
        "stop_time" => float 1436244707.5434
        "stop_memory" => integer 4817800
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5435
        "start_memory" => integer 4821376
        "stop_time" => float 1436244707.5435
        "stop_memory" => integer 4821984
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5439
        "start_memory" => integer 4837552
        "stop_time" => float 1436244707.5439
        "stop_memory" => integer 4838136
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.544
        "start_memory" => integer 4841696
        "stop_time" => float 1436244707.5441
        "stop_memory" => integer 4842304
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5445
        "start_memory" => integer 4858984
        "stop_time" => float 1436244707.5445
        "stop_memory" => integer 4859552
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5446
        "start_memory" => integer 4863080
        "stop_time" => float 1436244707.5446
        "stop_memory" => integer 4863680
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.545
        "start_memory" => integer 4881272
        "stop_time" => float 1436244707.5451
        "stop_memory" => integer 4881848
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5451
        "start_memory" => integer 4885352
        "stop_time" => float 1436244707.5452
        "stop_memory" => integer 4885952
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5456
        "start_memory" => integer 4892984
        "stop_time" => float 1436244707.5456
        "stop_memory" => integer 4893560
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5457
        "start_memory" => integer 4897072
        "stop_time" => float 1436244707.5457
        "stop_memory" => integer 4897672
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5461
        "start_memory" => integer 4907920
        "stop_time" => float 1436244707.5462
        "stop_memory" => integer 4908512
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5463
        "start_memory" => integer 4912088
        "stop_time" => float 1436244707.5463
        "stop_memory" => integer 4912696
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5471
        "start_memory" => integer 4921264
        "stop_time" => float 1436244707.5472
        "stop_memory" => integer 4921848
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5472
        "start_memory" => integer 4925424
        "stop_time" => float 1436244707.5473
        "stop_memory" => integer 4926032
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.548
        "start_memory" => integer 4933640
        "stop_time" => float 1436244707.5481
        "stop_memory" => integer 4934208
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5482
        "start_memory" => integer 4937736
        "stop_time" => float 1436244707.5482
        "stop_memory" => integer 4938336
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5486
        "start_memory" => integer 4943880
        "stop_time" => float 1436244707.5486
        "stop_memory" => integer 4944456
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5487
        "start_memory" => integer 4947984
        "stop_time" => float 1436244707.5487
        "stop_memory" => integer 4948584
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.55
        "start_memory" => integer 4957080
        "stop_time" => float 1436244707.55
        "stop_memory" => integer 4957656
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5501
        "start_memory" => integer 4961160
        "stop_time" => float 1436244707.5501
        "stop_memory" => integer 4961760
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5514
        "start_memory" => integer 5007520
        "stop_time" => float 1436244707.5514
        "stop_memory" => integer 5008064
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5515
        "start_memory" => integer 5011496
        "stop_time" => float 1436244707.5516
        "stop_memory" => integer 5012080
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5543
        "start_memory" => integer 5027120
        "stop_time" => float 1436244707.5543
        "stop_memory" => integer 5027680
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5544
        "start_memory" => integer 5031144
        "stop_time" => float 1436244707.5544
        "stop_memory" => integer 5031728
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5549
        "start_memory" => integer 5050272
        "stop_time" => float 1436244707.555
        "stop_memory" => integer 5050832
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.555
        "start_memory" => integer 5054264
        "stop_time" => float 1436244707.5551
        "stop_memory" => integer 5054848
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5558
        "start_memory" => integer 5099312
        "stop_time" => float 1436244707.5558
        "stop_memory" => integer 5099888
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5559
        "start_memory" => integer 5103368
        "stop_time" => float 1436244707.556
        "stop_memory" => integer 5103960
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5564
        "start_memory" => integer 5124320
        "stop_time" => float 1436244707.5564
        "stop_memory" => integer 5124904
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5565
        "start_memory" => integer 5130464
        "stop_time" => float 1436244707.5565
        "stop_memory" => integer 5131064
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5575
        "start_memory" => integer 5181560
        "stop_time" => float 1436244707.5576
        "stop_memory" => integer 5182120
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5576
        "start_memory" => integer 5185600
        "stop_time" => float 1436244707.5577
        "stop_memory" => integer 5186192
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5581
        "start_memory" => integer 5208456
        "stop_time" => float 1436244707.5582
        "stop_memory" => integer 5209008
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5583
        "start_memory" => integer 5212432
        "stop_time" => float 1436244707.5583
        "stop_memory" => integer 5213000
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5593
        "start_memory" => integer 5285312
        "stop_time" => float 1436244707.5593
        "stop_memory" => integer 5285880
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5594
        "start_memory" => integer 5289312
        "stop_time" => float 1436244707.5595
        "stop_memory" => integer 5289896
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.563
        "start_memory" => integer 5312688
        "stop_time" => float 1436244707.5631
        "stop_memory" => integer 5313248
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5632
        "start_memory" => integer 5316712
        "stop_time" => float 1436244707.5633
        "stop_memory" => integer 5317296
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5648
        "start_memory" => integer 5462144
        "stop_time" => float 1436244707.5649
        "stop_memory" => integer 5462720
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.565
        "start_memory" => integer 5466248
        "stop_time" => float 1436244707.565
        "stop_memory" => integer 5466840
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5657
        "start_memory" => integer 5481584
        "stop_time" => float 1436244707.5658
        "stop_memory" => integer 5482168
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1436244707.5661
        "start_memory" => integer 5450416
        "stop_time" => float 1436244707.5662
        "stop_memory" => integer 5452864
    )
)

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