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 1427602804.7401
        "start_memory" => integer 1695048
        "stop_time" => float 1427602805.0317
        "stop_memory" => integer 8468088
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7401
        "start_memory" => integer 1697864
        "stop_time" => float 1427602804.7402
        "stop_memory" => integer 1698456
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7409
        "start_memory" => integer 1826848
        "stop_time" => float 1427602804.7409
        "stop_memory" => integer 1827408
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.741
        "start_memory" => integer 1832840
        "stop_time" => float 1427602804.7411
        "stop_memory" => integer 1833424
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7413
        "start_memory" => integer 1844136
        "stop_time" => float 1427602804.7414
        "stop_memory" => integer 1844680
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7415
        "start_memory" => integer 1849560
        "stop_time" => float 1427602804.7415
        "stop_memory" => integer 1850136
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7417
        "start_memory" => integer 1853544
        "stop_time" => float 1427602804.7418
        "stop_memory" => integer 1854128
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7447
        "start_memory" => integer 2437960
        "stop_time" => float 1427602804.7448
        "stop_memory" => integer 2438536
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7449
        "start_memory" => integer 2443408
        "stop_time" => float 1427602804.745
        "stop_memory" => integer 2444048
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7455
        "start_memory" => integer 2589776
        "stop_time" => float 1427602804.7456
        "stop_memory" => integer 2590304
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7457
        "start_memory" => integer 2594952
        "stop_time" => float 1427602804.7458
        "stop_memory" => integer 2595520
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7461
        "start_memory" => integer 2627280
        "stop_time" => float 1427602804.7462
        "stop_memory" => integer 2627832
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7463
        "start_memory" => integer 2632472
        "stop_time" => float 1427602804.7464
        "stop_memory" => integer 2633040
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7472
        "start_memory" => integer 2799456
        "stop_time" => float 1427602804.7472
        "stop_memory" => integer 2800000
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7474
        "start_memory" => integer 2804640
        "stop_time" => float 1427602804.7475
        "stop_memory" => integer 2805208
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7478
        "start_memory" => integer 2859728
        "stop_time" => float 1427602804.7479
        "stop_memory" => integer 2860320
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.748
        "start_memory" => integer 2862216
        "stop_time" => float 1427602804.748
        "stop_memory" => integer 2862904
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7481
        "start_memory" => integer 2867784
        "stop_time" => float 1427602804.7481
        "stop_memory" => integer 2868368
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7483
        "start_memory" => integer 2871064
        "stop_time" => float 1427602804.7484
        "stop_memory" => integer 2871624
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7485
        "start_memory" => integer 2876512
        "stop_time" => float 1427602804.7486
        "stop_memory" => integer 2877096
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7489
        "start_memory" => integer 2926592
        "stop_time" => float 1427602804.749
        "stop_memory" => integer 2927136
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7491
        "start_memory" => integer 2931808
        "stop_time" => float 1427602804.7492
        "stop_memory" => integer 2932384
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.75
        "start_memory" => integer 3028728
        "stop_time" => float 1427602804.7501
        "stop_memory" => integer 3029264
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7502
        "start_memory" => integer 3033904
        "stop_time" => float 1427602804.7503
        "stop_memory" => integer 3034472
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.7519
        "start_memory" => integer 3117048
        "stop_time" => float 1427602804.752
        "stop_memory" => integer 3117640
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8365
        "start_memory" => integer 3156920
        "stop_time" => float 1427602804.8365
        "stop_memory" => integer 3157488
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8367
        "start_memory" => integer 3162152
        "stop_time" => float 1427602804.8367
        "stop_memory" => integer 3162728
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8378
        "start_memory" => integer 3216648
        "stop_time" => float 1427602804.8379
        "stop_memory" => integer 3217200
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.838
        "start_memory" => integer 3222040
        "stop_time" => float 1427602804.838
        "stop_memory" => integer 3222616
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8389
        "start_memory" => integer 3247656
        "stop_time" => float 1427602804.8389
        "stop_memory" => integer 3248208
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.839
        "start_memory" => integer 3252896
        "stop_time" => float 1427602804.839
        "stop_memory" => integer 3253472
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.84
        "start_memory" => integer 3326600
        "stop_time" => float 1427602804.84
        "stop_memory" => integer 3327184
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8402
        "start_memory" => integer 3345176
        "stop_time" => float 1427602804.8403
        "stop_memory" => integer 3345992
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8404
        "start_memory" => integer 3350856
        "stop_time" => float 1427602804.8404
        "stop_memory" => integer 3351440
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.841
        "start_memory" => integer 3416576
        "stop_time" => float 1427602804.841
        "stop_memory" => integer 3417152
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8413
        "start_memory" => integer 3436552
        "stop_time" => float 1427602804.8414
        "stop_memory" => integer 3437128
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8418
        "start_memory" => integer 3485192
        "stop_time" => float 1427602804.8419
        "stop_memory" => integer 3485768
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8422
        "start_memory" => integer 3497448
        "stop_time" => float 1427602804.8422
        "stop_memory" => integer 3498024
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8426
        "start_memory" => integer 3516048
        "stop_time" => float 1427602804.8426
        "stop_memory" => integer 3516624
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8429
        "start_memory" => integer 3526296
        "stop_time" => float 1427602804.8429
        "stop_memory" => integer 3526872
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8432
        "start_memory" => integer 3547000
        "stop_time" => float 1427602804.8432
        "stop_memory" => integer 3547576
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8435
        "start_memory" => integer 3568056
        "stop_time" => float 1427602804.8436
        "stop_memory" => integer 3568648
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8438
        "start_memory" => integer 3581872
        "stop_time" => float 1427602804.8439
        "stop_memory" => integer 3582440
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8442
        "start_memory" => integer 3594656
        "stop_time" => float 1427602804.8442
        "stop_memory" => integer 3595232
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8445
        "start_memory" => integer 3643552
        "stop_time" => float 1427602804.8445
        "stop_memory" => integer 3644112
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.845
        "start_memory" => integer 3682584
        "stop_time" => float 1427602804.845
        "stop_memory" => integer 3683168
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8453
        "start_memory" => integer 3702568
        "stop_time" => float 1427602804.8454
        "stop_memory" => integer 3703144
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8457
        "start_memory" => integer 3734320
        "stop_time" => float 1427602804.8457
        "stop_memory" => integer 3734896
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.846
        "start_memory" => integer 3753608
        "stop_time" => float 1427602804.8461
        "stop_memory" => integer 3754152
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8462
        "start_memory" => integer 3758824
        "stop_time" => float 1427602804.8462
        "stop_memory" => integer 3759400
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8561
        "start_memory" => integer 3880112
        "stop_time" => float 1427602804.8561
        "stop_memory" => integer 3880664
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8562
        "start_memory" => integer 3885496
        "stop_time" => float 1427602804.8562
        "stop_memory" => integer 3886072
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8606
        "start_memory" => integer 3911544
        "stop_time" => float 1427602804.8606
        "stop_memory" => integer 3912128
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8607
        "start_memory" => integer 3917080
        "stop_time" => float 1427602804.8607
        "stop_memory" => integer 3917656
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8654
        "start_memory" => integer 3943256
        "stop_time" => float 1427602804.8654
        "stop_memory" => integer 3943816
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8655
        "start_memory" => integer 3948672
        "stop_time" => float 1427602804.8655
        "stop_memory" => integer 3949240
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8663
        "start_memory" => integer 4036640
        "stop_time" => float 1427602804.8663
        "stop_memory" => integer 4037240
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8711
        "start_memory" => integer 4044184
        "stop_time" => float 1427602804.8712
        "stop_memory" => integer 4044736
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8712
        "start_memory" => integer 4049616
        "stop_time" => float 1427602804.8713
        "stop_memory" => integer 4050200
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8864
        "start_memory" => integer 4107016
        "stop_time" => float 1427602804.8864
        "stop_memory" => integer 4107576
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8866
        "start_memory" => integer 4112496
        "stop_time" => float 1427602804.8866
        "stop_memory" => integer 4113080
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8868
        "start_memory" => integer 4136368
        "stop_time" => float 1427602804.8868
        "stop_memory" => integer 4136944
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8875
        "start_memory" => integer 4146032
        "stop_time" => float 1427602804.8875
        "stop_memory" => integer 4146592
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8876
        "start_memory" => integer 4151456
        "stop_time" => float 1427602804.8877
        "stop_memory" => integer 4152040
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8889
        "start_memory" => integer 4231528
        "stop_time" => float 1427602804.8889
        "stop_memory" => integer 4232600
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.889
        "start_memory" => integer 4237504
        "stop_time" => float 1427602804.8891
        "stop_memory" => integer 4238088
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8945
        "start_memory" => integer 4263736
        "stop_time" => float 1427602804.8945
        "stop_memory" => integer 4264296
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8946
        "start_memory" => integer 4269160
        "stop_time" => float 1427602804.8946
        "stop_memory" => integer 4269744
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8955
        "start_memory" => integer 4291160
        "stop_time" => float 1427602804.8956
        "stop_memory" => integer 4291688
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8957
        "start_memory" => integer 4296336
        "stop_time" => float 1427602804.8958
        "stop_memory" => integer 4296904
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8983
        "start_memory" => integer 4307808
        "stop_time" => float 1427602804.8983
        "stop_memory" => integer 4308400
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8989
        "start_memory" => integer 4319184
        "stop_time" => float 1427602804.899
        "stop_memory" => integer 4319760
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.8992
        "start_memory" => integer 4358360
        "stop_time" => float 1427602804.8993
        "stop_memory" => integer 4358848
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9011
        "start_memory" => integer 4360024
        "stop_time" => float 1427602804.9011
        "stop_memory" => integer 4360600
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9032
        "start_memory" => integer 4389632
        "stop_time" => float 1427602804.9032
        "stop_memory" => integer 4390176
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9033
        "start_memory" => integer 4395048
        "stop_time" => float 1427602804.9034
        "stop_memory" => integer 4395624
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9068
        "start_memory" => integer 4410120
        "stop_time" => float 1427602804.9069
        "stop_memory" => integer 4410696
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9084
        "start_memory" => integer 4415536
        "stop_time" => float 1427602804.9084
        "stop_memory" => integer 4416072
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9086
        "start_memory" => integer 4420720
        "stop_time" => float 1427602804.9087
        "stop_memory" => integer 4421312
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9093
        "start_memory" => integer 4449072
        "stop_time" => float 1427602804.9093
        "stop_memory" => integer 4449648
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9094
        "start_memory" => integer 4454488
        "stop_time" => float 1427602804.9095
        "stop_memory" => integer 4455072
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9118
        "start_memory" => integer 4575144
        "stop_time" => float 1427602804.9119
        "stop_memory" => integer 4575720
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.912
        "start_memory" => integer 4580672
        "stop_time" => float 1427602804.912
        "stop_memory" => integer 4581264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9122
        "start_memory" => integer 4586424
        "stop_time" => float 1427602804.9122
        "stop_memory" => integer 4586976
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9128
        "start_memory" => integer 4606432
        "stop_time" => float 1427602804.9129
        "stop_memory" => integer 4607024
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9131
        "start_memory" => integer 4611984
        "stop_time" => float 1427602804.9131
        "stop_memory" => integer 4612576
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9145
        "start_memory" => integer 4618536
        "stop_time" => float 1427602804.9146
        "stop_memory" => integer 4619088
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9147
        "start_memory" => integer 4623952
        "stop_time" => float 1427602804.9147
        "stop_memory" => integer 4624536
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9161
        "start_memory" => integer 4756400
        "stop_time" => float 1427602804.9161
        "stop_memory" => integer 4756976
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9162
        "start_memory" => integer 4761936
        "stop_time" => float 1427602804.9163
        "stop_memory" => integer 4762528
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9164
        "start_memory" => integer 4783208
        "stop_time" => float 1427602804.9165
        "stop_memory" => integer 4783776
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9166
        "start_memory" => integer 4788664
        "stop_time" => float 1427602804.9166
        "stop_memory" => integer 4789240
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9177
        "start_memory" => integer 4851272
        "stop_time" => float 1427602804.9178
        "stop_memory" => integer 4851832
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9179
        "start_memory" => integer 4856704
        "stop_time" => float 1427602804.918
        "stop_memory" => integer 4857288
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9188
        "start_memory" => integer 4915504
        "stop_time" => float 1427602804.9188
        "stop_memory" => integer 4916064
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9189
        "start_memory" => integer 4920928
        "stop_time" => float 1427602804.919
        "stop_memory" => integer 4921512
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.92
        "start_memory" => integer 4964088
        "stop_time" => float 1427602804.92
        "stop_memory" => integer 4964664
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9201
        "start_memory" => integer 4969632
        "stop_time" => float 1427602804.9202
        "stop_memory" => integer 4970224
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9212
        "start_memory" => integer 5020176
        "stop_time" => float 1427602804.9212
        "stop_memory" => integer 5020760
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9213
        "start_memory" => integer 5025824
        "stop_time" => float 1427602804.9214
        "stop_memory" => integer 5026424
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9215
        "start_memory" => integer 5047104
        "stop_time" => float 1427602804.9216
        "stop_memory" => integer 5047680
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9217
        "start_memory" => integer 5053752
        "stop_time" => float 1427602804.9217
        "stop_memory" => integer 5054352
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9227
        "start_memory" => integer 5117320
        "stop_time" => float 1427602804.9227
        "stop_memory" => integer 5117896
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9228
        "start_memory" => integer 5122960
        "stop_time" => float 1427602804.9229
        "stop_memory" => integer 5123560
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.924
        "start_memory" => integer 5171152
        "stop_time" => float 1427602804.924
        "stop_memory" => integer 5171728
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9241
        "start_memory" => integer 5176784
        "stop_time" => float 1427602804.9241
        "stop_memory" => integer 5177384
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.925
        "start_memory" => integer 5209448
        "stop_time" => float 1427602804.925
        "stop_memory" => integer 5210024
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9251
        "start_memory" => integer 5215088
        "stop_time" => float 1427602804.9252
        "stop_memory" => integer 5215688
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9264
        "start_memory" => integer 5315512
        "stop_time" => float 1427602804.9264
        "stop_memory" => integer 5316088
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9265
        "start_memory" => integer 5321152
        "stop_time" => float 1427602804.9265
        "stop_memory" => integer 5321752
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.929
        "start_memory" => integer 5369640
        "stop_time" => float 1427602804.929
        "stop_memory" => integer 5370200
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9291
        "start_memory" => integer 5375168
        "stop_time" => float 1427602804.9292
        "stop_memory" => integer 5375760
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9303
        "start_memory" => integer 5398888
        "stop_time" => float 1427602804.9303
        "stop_memory" => integer 5399408
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9304
        "start_memory" => integer 5404048
        "stop_time" => float 1427602804.9305
        "stop_memory" => integer 5404616
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9317
        "start_memory" => integer 5513688
        "stop_time" => float 1427602804.9318
        "stop_memory" => integer 5514248
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.932
        "start_memory" => integer 5518944
        "stop_time" => float 1427602804.932
        "stop_memory" => integer 5519520
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9363
        "start_memory" => integer 5539264
        "stop_time" => float 1427602804.9364
        "stop_memory" => integer 5539800
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9365
        "start_memory" => integer 5544464
        "stop_time" => float 1427602804.9365
        "stop_memory" => integer 5545032
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9395
        "start_memory" => integer 5581664
        "stop_time" => float 1427602804.9395
        "stop_memory" => integer 5582208
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9396
        "start_memory" => integer 5586848
        "stop_time" => float 1427602804.9397
        "stop_memory" => integer 5587416
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9406
        "start_memory" => integer 5629832
        "stop_time" => float 1427602804.9406
        "stop_memory" => integer 5630376
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9407
        "start_memory" => integer 5635040
        "stop_time" => float 1427602804.9408
        "stop_memory" => integer 5635608
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9416
        "start_memory" => integer 5664928
        "stop_time" => float 1427602804.9417
        "stop_memory" => integer 5665472
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9418
        "start_memory" => integer 5670112
        "stop_time" => float 1427602804.9419
        "stop_memory" => integer 5670680
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9437
        "start_memory" => integer 5745712
        "stop_time" => float 1427602804.9438
        "stop_memory" => integer 5746256
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.944
        "start_memory" => integer 5750912
        "stop_time" => float 1427602804.944
        "stop_memory" => integer 5751480
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9463
        "start_memory" => integer 5773608
        "stop_time" => float 1427602804.9464
        "stop_memory" => integer 5774152
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9465
        "start_memory" => integer 5778792
        "stop_time" => float 1427602804.9466
        "stop_memory" => integer 5779360
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9483
        "start_memory" => integer 5800192
        "stop_time" => float 1427602804.9484
        "stop_memory" => integer 5801776
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9485
        "start_memory" => integer 5806464
        "stop_time" => float 1427602804.9485
        "stop_memory" => integer 5807040
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.95
        "start_memory" => integer 5934424
        "stop_time" => float 1427602804.9501
        "stop_memory" => integer 5934976
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9502
        "start_memory" => integer 5939656
        "stop_time" => float 1427602804.9502
        "stop_memory" => integer 5940232
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9519
        "start_memory" => integer 6107264
        "stop_time" => float 1427602804.952
        "stop_memory" => integer 6107816
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9521
        "start_memory" => integer 6112504
        "stop_time" => float 1427602804.9522
        "stop_memory" => integer 6113064
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9548
        "start_memory" => integer 6168680
        "stop_time" => float 1427602804.9548
        "stop_memory" => integer 6169256
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.955
        "start_memory" => integer 6174128
        "stop_time" => float 1427602804.9551
        "stop_memory" => integer 6174712
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9559
        "start_memory" => integer 6214768
        "stop_time" => float 1427602804.956
        "stop_memory" => integer 6215344
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9561
        "start_memory" => integer 6220296
        "stop_time" => float 1427602804.9562
        "stop_memory" => integer 6220888
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9576
        "start_memory" => integer 6246840
        "stop_time" => float 1427602804.9576
        "stop_memory" => integer 6247416
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9577
        "start_memory" => integer 6252312
        "stop_time" => float 1427602804.9578
        "stop_memory" => integer 6252888
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9602
        "start_memory" => integer 6278760
        "stop_time" => float 1427602804.9602
        "stop_memory" => integer 6279336
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9623
        "start_memory" => integer 6288832
        "stop_time" => float 1427602804.9624
        "stop_memory" => integer 6289408
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9677
        "start_memory" => integer 6325528
        "stop_time" => float 1427602804.9677
        "stop_memory" => integer 6326088
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9679
        "start_memory" => integer 6334560
        "stop_time" => float 1427602804.9679
        "stop_memory" => integer 6335048
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9695
        "start_memory" => integer 6335304
        "stop_time" => float 1427602804.9695
        "stop_memory" => integer 6335872
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9711
        "start_memory" => integer 6342344
        "stop_time" => float 1427602804.9712
        "stop_memory" => integer 6342912
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9724
        "start_memory" => integer 6354720
        "stop_time" => float 1427602804.9724
        "stop_memory" => integer 6355304
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9731
        "start_memory" => integer 6364064
        "stop_time" => float 1427602804.9731
        "stop_memory" => integer 6364640
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9737
        "start_memory" => integer 6367720
        "stop_time" => float 1427602804.9738
        "stop_memory" => integer 6368280
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9741
        "start_memory" => integer 6376624
        "stop_time" => float 1427602804.9742
        "stop_memory" => integer 6377192
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9744
        "start_memory" => integer 6385512
        "stop_time" => float 1427602804.9745
        "stop_memory" => integer 6386048
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9746
        "start_memory" => integer 6390696
        "stop_time" => float 1427602804.9747
        "stop_memory" => integer 6391264
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9754
        "start_memory" => integer 6400568
        "stop_time" => float 1427602804.9754
        "stop_memory" => integer 6401144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9756
        "start_memory" => integer 6409848
        "stop_time" => float 1427602804.9756
        "stop_memory" => integer 6410376
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9757
        "start_memory" => integer 6415032
        "stop_time" => float 1427602804.9757
        "stop_memory" => integer 6415600
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9782
        "start_memory" => integer 6765984
        "stop_time" => float 1427602804.9782
        "stop_memory" => integer 6766560
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.979
        "start_memory" => integer 6849976
        "stop_time" => float 1427602804.979
        "stop_memory" => integer 6850560
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9795
        "start_memory" => integer 6893720
        "stop_time" => float 1427602804.9795
        "stop_memory" => integer 6894264
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.98
        "start_memory" => integer 6923656
        "stop_time" => float 1427602804.9801
        "stop_memory" => integer 6924216
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9807
        "start_memory" => integer 6956120
        "stop_time" => float 1427602804.9807
        "stop_memory" => integer 6956696
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9814
        "start_memory" => integer 6987040
        "stop_time" => float 1427602804.9815
        "stop_memory" => integer 6987576
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9816
        "start_memory" => integer 6992224
        "stop_time" => float 1427602804.9817
        "stop_memory" => integer 6992792
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9824
        "start_memory" => integer 7003800
        "stop_time" => float 1427602804.9824
        "stop_memory" => integer 7004360
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9825
        "start_memory" => integer 7009056
        "stop_time" => float 1427602804.9826
        "stop_memory" => integer 7009632
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9833
        "start_memory" => integer 7052416
        "stop_time" => float 1427602804.9834
        "stop_memory" => integer 7052968
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9835
        "start_memory" => integer 7057640
        "stop_time" => float 1427602804.9836
        "stop_memory" => integer 7058216
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9842
        "start_memory" => integer 7071992
        "stop_time" => float 1427602804.9842
        "stop_memory" => integer 7072560
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9843
        "start_memory" => integer 7077432
        "stop_time" => float 1427602804.9844
        "stop_memory" => integer 7078016
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9847
        "start_memory" => integer 7093712
        "stop_time" => float 1427602804.9847
        "stop_memory" => integer 7094272
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9849
        "start_memory" => integer 7099160
        "stop_time" => float 1427602804.985
        "stop_memory" => integer 7099744
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9853
        "start_memory" => integer 7117824
        "stop_time" => float 1427602804.9853
        "stop_memory" => integer 7118400
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9854
        "start_memory" => integer 7123392
        "stop_time" => float 1427602804.9855
        "stop_memory" => integer 7123984
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9858
        "start_memory" => integer 7129432
        "stop_time" => float 1427602804.9858
        "stop_memory" => integer 7129984
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9859
        "start_memory" => integer 7134864
        "stop_time" => float 1427602804.986
        "stop_memory" => integer 7135448
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9861
        "start_memory" => integer 7144168
        "stop_time" => float 1427602804.9862
        "stop_memory" => integer 7144728
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9863
        "start_memory" => integer 7149600
        "stop_time" => float 1427602804.9863
        "stop_memory" => integer 7150184
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9875
        "start_memory" => integer 7247776
        "stop_time" => float 1427602804.9876
        "stop_memory" => integer 7248352
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9877
        "start_memory" => integer 7253336
        "stop_time" => float 1427602804.9877
        "stop_memory" => integer 7253928
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9884
        "start_memory" => integer 7272768
        "stop_time" => float 1427602804.9885
        "stop_memory" => integer 7273352
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9886
        "start_memory" => integer 7278384
        "stop_time" => float 1427602804.9887
        "stop_memory" => integer 7278968
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9894
        "start_memory" => integer 7295792
        "stop_time" => float 1427602804.9894
        "stop_memory" => integer 7296360
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9895
        "start_memory" => integer 7301304
        "stop_time" => float 1427602804.9896
        "stop_memory" => integer 7301896
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9903
        "start_memory" => integer 7320656
        "stop_time" => float 1427602804.9903
        "stop_memory" => integer 7321208
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9904
        "start_memory" => integer 7326072
        "stop_time" => float 1427602804.9904
        "stop_memory" => integer 7326656
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9906
        "start_memory" => integer 7334032
        "stop_time" => float 1427602804.9906
        "stop_memory" => integer 7334592
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9908
        "start_memory" => integer 7339464
        "stop_time" => float 1427602804.9909
        "stop_memory" => integer 7340048
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9915
        "start_memory" => integer 7353240
        "stop_time" => float 1427602804.9916
        "stop_memory" => integer 7353816
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9917
        "start_memory" => integer 7358768
        "stop_time" => float 1427602804.9918
        "stop_memory" => integer 7359360
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9925
        "start_memory" => integer 7364040
        "stop_time" => float 1427602804.9925
        "stop_memory" => integer 7364592
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9927
        "start_memory" => integer 7369472
        "stop_time" => float 1427602804.9927
        "stop_memory" => integer 7370056
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9932
        "start_memory" => integer 7385344
        "stop_time" => float 1427602804.9933
        "stop_memory" => integer 7385904
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9934
        "start_memory" => integer 7390784
        "stop_time" => float 1427602804.9934
        "stop_memory" => integer 7391368
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9941
        "start_memory" => integer 7429352
        "stop_time" => float 1427602804.9941
        "stop_memory" => integer 7429928
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9942
        "start_memory" => integer 7434888
        "stop_time" => float 1427602804.9942
        "stop_memory" => integer 7435480
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9955
        "start_memory" => integer 7449208
        "stop_time" => float 1427602804.9955
        "stop_memory" => integer 7449776
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9956
        "start_memory" => integer 7454744
        "stop_time" => float 1427602804.9957
        "stop_memory" => integer 7455336
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9971
        "start_memory" => integer 7465672
        "stop_time" => float 1427602804.9971
        "stop_memory" => integer 7466240
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9972
        "start_memory" => integer 7471184
        "stop_time" => float 1427602804.9972
        "stop_memory" => integer 7471776
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9977
        "start_memory" => integer 7492136
        "stop_time" => float 1427602804.9978
        "stop_memory" => integer 7492704
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9979
        "start_memory" => integer 7497672
        "stop_time" => float 1427602804.998
        "stop_memory" => integer 7498264
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9985
        "start_memory" => integer 7517600
        "stop_time" => float 1427602804.9986
        "stop_memory" => integer 7518168
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9987
        "start_memory" => integer 7523192
        "stop_time" => float 1427602804.9987
        "stop_memory" => integer 7523784
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602804.9997
        "start_memory" => integer 7540984
        "stop_time" => float 1427602804.9998
        "stop_memory" => integer 7541552
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0001
        "start_memory" => integer 7546520
        "stop_time" => float 1427602805.0001
        "stop_memory" => integer 7547112
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0009
        "start_memory" => integer 7565448
        "stop_time" => float 1427602805.0009
        "stop_memory" => integer 7566016
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.001
        "start_memory" => integer 7570968
        "stop_time" => float 1427602805.001
        "stop_memory" => integer 7571560
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0018
        "start_memory" => integer 7591696
        "stop_time" => float 1427602805.0018
        "stop_memory" => integer 7592248
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0019
        "start_memory" => integer 7597128
        "stop_time" => float 1427602805.0019
        "stop_memory" => integer 7597712
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0025
        "start_memory" => integer 7608080
        "stop_time" => float 1427602805.0025
        "stop_memory" => integer 7608640
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0026
        "start_memory" => integer 7613528
        "stop_time" => float 1427602805.0026
        "stop_memory" => integer 7614112
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0031
        "start_memory" => integer 7629608
        "stop_time" => float 1427602805.0031
        "stop_memory" => integer 7630184
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0032
        "start_memory" => integer 7635200
        "stop_time" => float 1427602805.0033
        "stop_memory" => integer 7635792
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0045
        "start_memory" => integer 7647264
        "stop_time" => float 1427602805.0045
        "stop_memory" => integer 7647832
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0046
        "start_memory" => integer 7652848
        "stop_time" => float 1427602805.0046
        "stop_memory" => integer 7653440
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0057
        "start_memory" => integer 7663240
        "stop_time" => float 1427602805.0057
        "stop_memory" => integer 7663808
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0058
        "start_memory" => integer 7668744
        "stop_time" => float 1427602805.0058
        "stop_memory" => integer 7669320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0064
        "start_memory" => integer 7675504
        "stop_time" => float 1427602805.0064
        "stop_memory" => integer 7676104
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0065
        "start_memory" => integer 7681056
        "stop_time" => float 1427602805.0066
        "stop_memory" => integer 7681648
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0085
        "start_memory" => integer 7691504
        "stop_time" => float 1427602805.0086
        "stop_memory" => integer 7692056
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0087
        "start_memory" => integer 7696936
        "stop_time" => float 1427602805.0087
        "stop_memory" => integer 7697520
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0104
        "start_memory" => integer 7771896
        "stop_time" => float 1427602805.0105
        "stop_memory" => integer 7772424
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0106
        "start_memory" => integer 7777072
        "stop_time" => float 1427602805.0106
        "stop_memory" => integer 7777640
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.015
        "start_memory" => integer 7803696
        "stop_time" => float 1427602805.015
        "stop_memory" => integer 7804240
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0151
        "start_memory" => integer 7808896
        "stop_time" => float 1427602805.0152
        "stop_memory" => integer 7809464
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0159
        "start_memory" => integer 7841264
        "stop_time" => float 1427602805.0159
        "stop_memory" => integer 7841808
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.016
        "start_memory" => integer 7846456
        "stop_time" => float 1427602805.0161
        "stop_memory" => integer 7847024
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0171
        "start_memory" => integer 7913344
        "stop_time" => float 1427602805.0171
        "stop_memory" => integer 7913904
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0173
        "start_memory" => integer 7918760
        "stop_time" => float 1427602805.0173
        "stop_memory" => integer 7919336
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0181
        "start_memory" => integer 7942784
        "stop_time" => float 1427602805.0181
        "stop_memory" => integer 7943368
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0182
        "start_memory" => integer 7950336
        "stop_time" => float 1427602805.0183
        "stop_memory" => integer 7950928
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0198
        "start_memory" => integer 8023664
        "stop_time" => float 1427602805.0198
        "stop_memory" => integer 8024200
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.02
        "start_memory" => integer 8029064
        "stop_time" => float 1427602805.02
        "stop_memory" => integer 8029640
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0206
        "start_memory" => integer 8057344
        "stop_time" => float 1427602805.0207
        "stop_memory" => integer 8057880
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0208
        "start_memory" => integer 8062536
        "stop_time" => float 1427602805.0209
        "stop_memory" => integer 8063104
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0221
        "start_memory" => integer 8183968
        "stop_time" => float 1427602805.0222
        "stop_memory" => integer 8184512
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0222
        "start_memory" => integer 8189184
        "stop_time" => float 1427602805.0223
        "stop_memory" => integer 8189752
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0276
        "start_memory" => integer 8228480
        "stop_time" => float 1427602805.0276
        "stop_memory" => integer 8229024
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0277
        "start_memory" => integer 8233680
        "stop_time" => float 1427602805.0278
        "stop_memory" => integer 8234248
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0297
        "start_memory" => integer 8475200
        "stop_time" => float 1427602805.0299
        "stop_memory" => integer 8475776
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.03
        "start_memory" => integer 8480712
        "stop_time" => float 1427602805.0301
        "stop_memory" => integer 8481296
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0311
        "start_memory" => integer 8499336
        "stop_time" => float 1427602805.0311
        "stop_memory" => integer 8499912
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1427602805.0315
        "start_memory" => integer 8466592
        "stop_time" => float 1427602805.0315
        "stop_memory" => integer 8468704
    )
)

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