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-2012 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(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1398264982.9402
        "start_memory" => integer 1984664
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9403
        "start_memory" => integer 1987008
        "stop_time" => float 1398264982.9404
        "stop_memory" => integer 1987600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9405
        "start_memory" => integer 1992552
        "stop_time" => float 1398264982.9406
        "stop_memory" => integer 1993144
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9416
        "start_memory" => integer 2118664
        "stop_time" => float 1398264982.9417
        "stop_memory" => integer 2119216
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9418
        "start_memory" => integer 2124136
        "stop_time" => float 1398264982.9419
        "stop_memory" => integer 2124720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9421
        "start_memory" => integer 2135808
        "stop_time" => float 1398264982.9422
        "stop_memory" => integer 2136352
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9423
        "start_memory" => integer 2141064
        "stop_time" => float 1398264982.9424
        "stop_memory" => integer 2141640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9427
        "start_memory" => integer 2150920
        "stop_time" => float 1398264982.9428
        "stop_memory" => integer 2151456
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.943
        "start_memory" => integer 2156128
        "stop_time" => float 1398264982.9431
        "stop_memory" => integer 2156760
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9446
        "start_memory" => integer 2317688
        "stop_time" => float 1398264982.9447
        "stop_memory" => integer 2318248
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9449
        "start_memory" => integer 2323096
        "stop_time" => float 1398264982.945
        "stop_memory" => integer 2323672
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9453
        "start_memory" => integer 2337128
        "stop_time" => float 1398264982.9454
        "stop_memory" => integer 2337672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9456
        "start_memory" => integer 2342320
        "stop_time" => float 1398264982.9457
        "stop_memory" => integer 2342888
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9462
        "start_memory" => integer 2397720
        "stop_time" => float 1398264982.9463
        "stop_memory" => integer 2398312
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9463
        "start_memory" => integer 2399472
        "stop_time" => float 1398264982.9464
        "stop_memory" => integer 2400048
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9465
        "start_memory" => integer 2404920
        "stop_time" => float 1398264982.9466
        "stop_memory" => integer 2405496
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9473
        "start_memory" => integer 2470936
        "stop_time" => float 1398264982.9474
        "stop_memory" => integer 2471552
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9474
        "start_memory" => integer 2472336
        "stop_time" => float 1398264982.9475
        "stop_memory" => integer 2472912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9524
        "start_memory" => integer 3141592
        "stop_time" => float 1398264982.9525
        "stop_memory" => integer 3142120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9528
        "start_memory" => integer 3147816
        "stop_time" => float 1398264982.9529
        "stop_memory" => integer 3148384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9534
        "start_memory" => integer 3181104
        "stop_time" => float 1398264982.9534
        "stop_memory" => integer 3181648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9536
        "start_memory" => integer 3186288
        "stop_time" => float 1398264982.9536
        "stop_memory" => integer 3186856
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9551
        "start_memory" => integer 3349728
        "stop_time" => float 1398264982.9553
        "stop_memory" => integer 3350304
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9554
        "start_memory" => integer 3355184
        "stop_time" => float 1398264982.9555
        "stop_memory" => integer 3355768
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9558
        "start_memory" => integer 3358456
        "stop_time" => float 1398264982.9558
        "stop_memory" => integer 3359016
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9559
        "start_memory" => integer 3363888
        "stop_time" => float 1398264982.9559
        "stop_memory" => integer 3364472
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9563
        "start_memory" => integer 3414128
        "stop_time" => float 1398264982.9563
        "stop_memory" => integer 3414672
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9564
        "start_memory" => integer 3419344
        "stop_time" => float 1398264982.9565
        "stop_memory" => integer 3419920
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9575
        "start_memory" => integer 3517960
        "stop_time" => float 1398264982.9576
        "stop_memory" => integer 3518496
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9577
        "start_memory" => integer 3523136
        "stop_time" => float 1398264982.9578
        "stop_memory" => integer 3523704
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264982.9613
        "start_memory" => integer 3610296
        "stop_time" => float 1398264982.9614
        "stop_memory" => integer 3610888
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0601
        "start_memory" => integer 3653008
        "stop_time" => float 1398264983.0602
        "stop_memory" => integer 3653576
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0604
        "start_memory" => integer 3658240
        "stop_time" => float 1398264983.0605
        "stop_memory" => integer 3659072
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0619
        "start_memory" => integer 3699688
        "stop_time" => float 1398264983.062
        "stop_memory" => integer 3700240
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0621
        "start_memory" => integer 3705072
        "stop_time" => float 1398264983.0622
        "stop_memory" => integer 3705648
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0633
        "start_memory" => integer 3729360
        "stop_time" => float 1398264983.0635
        "stop_memory" => integer 3729912
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0637
        "start_memory" => integer 3734592
        "stop_time" => float 1398264983.0637
        "stop_memory" => integer 3735168
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0651
        "start_memory" => integer 3802336
        "stop_time" => float 1398264983.0652
        "stop_memory" => integer 3802920
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0654
        "start_memory" => integer 3820912
        "stop_time" => float 1398264983.0655
        "stop_memory" => integer 3821472
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0656
        "start_memory" => integer 3826336
        "stop_time" => float 1398264983.0657
        "stop_memory" => integer 3826920
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0672
        "start_memory" => integer 3892072
        "stop_time" => float 1398264983.0673
        "stop_memory" => integer 3892648
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0677
        "start_memory" => integer 3912048
        "stop_time" => float 1398264983.0678
        "stop_memory" => integer 3912624
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0684
        "start_memory" => integer 3960664
        "stop_time" => float 1398264983.0685
        "stop_memory" => integer 3961240
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.069
        "start_memory" => integer 3971896
        "stop_time" => float 1398264983.069
        "stop_memory" => integer 3972472
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0694
        "start_memory" => integer 3990480
        "stop_time" => float 1398264983.0695
        "stop_memory" => integer 3991056
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0699
        "start_memory" => integer 4000720
        "stop_time" => float 1398264983.0699
        "stop_memory" => integer 4001296
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0703
        "start_memory" => integer 4021400
        "stop_time" => float 1398264983.0704
        "stop_memory" => integer 4021976
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0708
        "start_memory" => integer 4042456
        "stop_time" => float 1398264983.0709
        "stop_memory" => integer 4043048
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0713
        "start_memory" => integer 4056272
        "stop_time" => float 1398264983.0714
        "stop_memory" => integer 4056840
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0718
        "start_memory" => integer 4069048
        "stop_time" => float 1398264983.0719
        "stop_memory" => integer 4069624
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0724
        "start_memory" => integer 4117904
        "stop_time" => float 1398264983.0724
        "stop_memory" => integer 4118464
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.073
        "start_memory" => integer 4156936
        "stop_time" => float 1398264983.073
        "stop_memory" => integer 4157520
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0734
        "start_memory" => integer 4176920
        "stop_time" => float 1398264983.0735
        "stop_memory" => integer 4177496
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0741
        "start_memory" => integer 4208656
        "stop_time" => float 1398264983.0741
        "stop_memory" => integer 4209232
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0745
        "start_memory" => integer 4227944
        "stop_time" => float 1398264983.0745
        "stop_memory" => integer 4228488
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0747
        "start_memory" => integer 4233160
        "stop_time" => float 1398264983.0748
        "stop_memory" => integer 4233736
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0751
        "start_memory" => integer 4264576
        "stop_time" => float 1398264983.0752
        "stop_memory" => integer 4265112
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0753
        "start_memory" => integer 4269760
        "stop_time" => float 1398264983.0754
        "stop_memory" => integer 4270328
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0793
        "start_memory" => integer 4411888
        "stop_time" => float 1398264983.0794
        "stop_memory" => integer 4412464
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0911
        "start_memory" => integer 4465272
        "stop_time" => float 1398264983.0912
        "stop_memory" => integer 4465824
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0913
        "start_memory" => integer 4470656
        "stop_time" => float 1398264983.0913
        "stop_memory" => integer 4471232
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0974
        "start_memory" => integer 4496696
        "stop_time" => float 1398264983.0975
        "stop_memory" => integer 4497280
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.0976
        "start_memory" => integer 4502216
        "stop_time" => float 1398264983.0977
        "stop_memory" => integer 4502792
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1039
        "start_memory" => integer 4528400
        "stop_time" => float 1398264983.104
        "stop_memory" => integer 4528960
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1041
        "start_memory" => integer 4533816
        "stop_time" => float 1398264983.1042
        "stop_memory" => integer 4534896
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1049
        "start_memory" => integer 4623616
        "stop_time" => float 1398264983.105
        "stop_memory" => integer 4624200
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1116
        "start_memory" => integer 4631120
        "stop_time" => float 1398264983.1117
        "stop_memory" => integer 4631672
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1119
        "start_memory" => integer 4636552
        "stop_time" => float 1398264983.1119
        "stop_memory" => integer 4637136
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1316
        "start_memory" => integer 4694040
        "stop_time" => float 1398264983.1317
        "stop_memory" => integer 4694600
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1318
        "start_memory" => integer 4699520
        "stop_time" => float 1398264983.1319
        "stop_memory" => integer 4700104
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1321
        "start_memory" => integer 4723992
        "stop_time" => float 1398264983.1322
        "stop_memory" => integer 4724568
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1332
        "start_memory" => integer 4733640
        "stop_time" => float 1398264983.1332
        "stop_memory" => integer 4734200
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1333
        "start_memory" => integer 4739064
        "stop_time" => float 1398264983.1334
        "stop_memory" => integer 4739648
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1351
        "start_memory" => integer 4819096
        "stop_time" => float 1398264983.1352
        "stop_memory" => integer 4819656
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1353
        "start_memory" => integer 4824536
        "stop_time" => float 1398264983.1353
        "stop_memory" => integer 4825120
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1428
        "start_memory" => integer 4850840
        "stop_time" => float 1398264983.1429
        "stop_memory" => integer 4851400
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.143
        "start_memory" => integer 4856264
        "stop_time" => float 1398264983.143
        "stop_memory" => integer 4856848
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.144
        "start_memory" => integer 4878256
        "stop_time" => float 1398264983.1441
        "stop_memory" => integer 4878784
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1442
        "start_memory" => integer 4883432
        "stop_time" => float 1398264983.1442
        "stop_memory" => integer 4884008
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1465
        "start_memory" => integer 4894864
        "stop_time" => float 1398264983.1466
        "stop_memory" => integer 4895456
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1468
        "start_memory" => integer 4900344
        "stop_time" => float 1398264983.1469
        "stop_memory" => integer 4900920
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1521
        "start_memory" => integer 4945872
        "stop_time" => float 1398264983.1523
        "stop_memory" => integer 4946448
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1532
        "start_memory" => integer 4957584
        "stop_time" => float 1398264983.1533
        "stop_memory" => integer 4958128
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1534
        "start_memory" => integer 4964024
        "stop_time" => float 1398264983.1535
        "stop_memory" => integer 4964600
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1587
        "start_memory" => integer 4986056
        "stop_time" => float 1398264983.1587
        "stop_memory" => integer 4986624
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1619
        "start_memory" => integer 4992192
        "stop_time" => float 1398264983.162
        "stop_memory" => integer 4992760
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1621
        "start_memory" => integer 4997608
        "stop_time" => float 1398264983.1622
        "stop_memory" => integer 4998192
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1653
        "start_memory" => integer 5131960
        "stop_time" => float 1398264983.1654
        "stop_memory" => integer 5132536
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1656
        "start_memory" => integer 5137488
        "stop_time" => float 1398264983.1657
        "stop_memory" => integer 5138080
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1664
        "start_memory" => integer 5152936
        "stop_time" => float 1398264983.1665
        "stop_memory" => integer 5153504
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1666
        "start_memory" => integer 5158464
        "stop_time" => float 1398264983.1666
        "stop_memory" => integer 5159056
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1685
        "start_memory" => integer 5165000
        "stop_time" => float 1398264983.1686
        "stop_memory" => integer 5165552
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1688
        "start_memory" => integer 5170416
        "stop_time" => float 1398264983.1688
        "stop_memory" => integer 5171000
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1705
        "start_memory" => integer 5315600
        "stop_time" => float 1398264983.1705
        "stop_memory" => integer 5316176
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1707
        "start_memory" => integer 5321136
        "stop_time" => float 1398264983.1707
        "stop_memory" => integer 5321728
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1709
        "start_memory" => integer 5342408
        "stop_time" => float 1398264983.1709
        "stop_memory" => integer 5342976
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.171
        "start_memory" => integer 5347864
        "stop_time" => float 1398264983.171
        "stop_memory" => integer 5348440
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1722
        "start_memory" => integer 5410704
        "stop_time" => float 1398264983.1722
        "stop_memory" => integer 5411264
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1723
        "start_memory" => integer 5416136
        "stop_time" => float 1398264983.1724
        "stop_memory" => integer 5416720
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1735
        "start_memory" => integer 5482224
        "stop_time" => float 1398264983.1736
        "stop_memory" => integer 5482784
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1739
        "start_memory" => integer 5487648
        "stop_time" => float 1398264983.174
        "stop_memory" => integer 5488232
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1751
        "start_memory" => integer 5530888
        "stop_time" => float 1398264983.1751
        "stop_memory" => integer 5531464
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1752
        "start_memory" => integer 5536432
        "stop_time" => float 1398264983.1753
        "stop_memory" => integer 5537024
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1766
        "start_memory" => integer 5595864
        "stop_time" => float 1398264983.1766
        "stop_memory" => integer 5596448
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1768
        "start_memory" => integer 5601512
        "stop_time" => float 1398264983.1768
        "stop_memory" => integer 5602112
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1771
        "start_memory" => integer 5621784
        "stop_time" => float 1398264983.1771
        "stop_memory" => integer 5622360
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1772
        "start_memory" => integer 5627424
        "stop_time" => float 1398264983.1773
        "stop_memory" => integer 5628024
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1786
        "start_memory" => integer 5692480
        "stop_time" => float 1398264983.1787
        "stop_memory" => integer 5693056
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1789
        "start_memory" => integer 5698120
        "stop_time" => float 1398264983.179
        "stop_memory" => integer 5698720
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1802
        "start_memory" => integer 5747048
        "stop_time" => float 1398264983.1803
        "stop_memory" => integer 5747624
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1804
        "start_memory" => integer 5752680
        "stop_time" => float 1398264983.1805
        "stop_memory" => integer 5753280
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1818
        "start_memory" => integer 5794584
        "stop_time" => float 1398264983.1818
        "stop_memory" => integer 5795160
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1819
        "start_memory" => integer 5800224
        "stop_time" => float 1398264983.182
        "stop_memory" => integer 5800824
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1836
        "start_memory" => integer 5913752
        "stop_time" => float 1398264983.1836
        "stop_memory" => integer 5914328
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1838
        "start_memory" => integer 5919392
        "stop_time" => float 1398264983.1839
        "stop_memory" => integer 5919992
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1871
        "start_memory" => integer 5968648
        "stop_time" => float 1398264983.1872
        "stop_memory" => integer 5969208
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1873
        "start_memory" => integer 5974176
        "stop_time" => float 1398264983.1874
        "stop_memory" => integer 5974768
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.189
        "start_memory" => integer 5997888
        "stop_time" => float 1398264983.1891
        "stop_memory" => integer 5998408
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1892
        "start_memory" => integer 6003048
        "stop_time" => float 1398264983.1893
        "stop_memory" => integer 6003616
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1904
        "start_memory" => integer 6121264
        "stop_time" => float 1398264983.1904
        "stop_memory" => integer 6121808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1913
        "start_memory" => integer 6122864
        "stop_time" => float 1398264983.1913
        "stop_memory" => integer 6123432
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1915
        "start_memory" => integer 6128104
        "stop_time" => float 1398264983.1915
        "stop_memory" => integer 6128688
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1978
        "start_memory" => integer 6149008
        "stop_time" => float 1398264983.198
        "stop_memory" => integer 6149544
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.1981
        "start_memory" => integer 6154208
        "stop_time" => float 1398264983.1982
        "stop_memory" => integer 6154776
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2023
        "start_memory" => integer 6192216
        "stop_time" => float 1398264983.2024
        "stop_memory" => integer 6192760
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2026
        "start_memory" => integer 6197400
        "stop_time" => float 1398264983.2027
        "stop_memory" => integer 6197968
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2039
        "start_memory" => integer 6240408
        "stop_time" => float 1398264983.204
        "stop_memory" => integer 6240952
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2041
        "start_memory" => integer 6245592
        "stop_time" => float 1398264983.2042
        "stop_memory" => integer 6246168
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2054
        "start_memory" => integer 6290368
        "stop_time" => float 1398264983.2055
        "stop_memory" => integer 6291936
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2057
        "start_memory" => integer 6296576
        "stop_time" => float 1398264983.2057
        "stop_memory" => integer 6297144
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2078
        "start_memory" => integer 6372656
        "stop_time" => float 1398264983.2079
        "stop_memory" => integer 6373200
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2081
        "start_memory" => integer 6377856
        "stop_time" => float 1398264983.2082
        "stop_memory" => integer 6378424
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2114
        "start_memory" => integer 6400616
        "stop_time" => float 1398264983.2116
        "stop_memory" => integer 6401160
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2117
        "start_memory" => integer 6405816
        "stop_time" => float 1398264983.2119
        "stop_memory" => integer 6406384
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2139
        "start_memory" => integer 6435840
        "stop_time" => float 1398264983.214
        "stop_memory" => integer 6436400
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2142
        "start_memory" => integer 6441248
        "stop_time" => float 1398264983.2143
        "stop_memory" => integer 6441824
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2153
        "start_memory" => integer 6462112
        "stop_time" => float 1398264983.2154
        "stop_memory" => integer 6462680
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2155
        "start_memory" => integer 6467616
        "stop_time" => float 1398264983.2156
        "stop_memory" => integer 6468200
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2165
        "start_memory" => integer 6483232
        "stop_time" => float 1398264983.2166
        "stop_memory" => integer 6483792
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2167
        "start_memory" => integer 6488728
        "stop_time" => float 1398264983.217
        "stop_memory" => integer 6489312
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2179
        "start_memory" => integer 6504360
        "stop_time" => float 1398264983.218
        "stop_memory" => integer 6504920
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2181
        "start_memory" => integer 6509856
        "stop_time" => float 1398264983.2182
        "stop_memory" => integer 6510440
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2192
        "start_memory" => integer 6525488
        "stop_time" => float 1398264983.2192
        "stop_memory" => integer 6526048
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2194
        "start_memory" => integer 6530984
        "stop_time" => float 1398264983.2195
        "stop_memory" => integer 6531568
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2204
        "start_memory" => integer 6546592
        "stop_time" => float 1398264983.2205
        "stop_memory" => integer 6547152
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2206
        "start_memory" => integer 6552088
        "stop_time" => float 1398264983.2207
        "stop_memory" => integer 6552672
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2217
        "start_memory" => integer 6567696
        "stop_time" => float 1398264983.2217
        "stop_memory" => integer 6568256
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2219
        "start_memory" => integer 6573192
        "stop_time" => float 1398264983.222
        "stop_memory" => integer 6573776
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.223
        "start_memory" => integer 6588832
        "stop_time" => float 1398264983.2231
        "stop_memory" => integer 6589392
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2232
        "start_memory" => integer 6594328
        "stop_time" => float 1398264983.2233
        "stop_memory" => integer 6594912
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2243
        "start_memory" => integer 6609936
        "stop_time" => float 1398264983.2243
        "stop_memory" => integer 6610496
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2245
        "start_memory" => integer 6615432
        "stop_time" => float 1398264983.2245
        "stop_memory" => integer 6616016
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2255
        "start_memory" => integer 6631152
        "stop_time" => float 1398264983.2256
        "stop_memory" => integer 6631712
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2257
        "start_memory" => integer 6636648
        "stop_time" => float 1398264983.2258
        "stop_memory" => integer 6637232
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2268
        "start_memory" => integer 6652264
        "stop_time" => float 1398264983.2269
        "stop_memory" => integer 6652824
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2271
        "start_memory" => integer 6657760
        "stop_time" => float 1398264983.2271
        "stop_memory" => integer 6658344
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2281
        "start_memory" => integer 6673384
        "stop_time" => float 1398264983.2282
        "stop_memory" => integer 6673944
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2283
        "start_memory" => integer 6678880
        "stop_time" => float 1398264983.2284
        "stop_memory" => integer 6679464
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2293
        "start_memory" => integer 6694472
        "stop_time" => float 1398264983.2294
        "stop_memory" => integer 6695032
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2295
        "start_memory" => integer 6699968
        "stop_time" => float 1398264983.2296
        "stop_memory" => integer 6700552
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2305
        "start_memory" => integer 6715576
        "stop_time" => float 1398264983.2306
        "stop_memory" => integer 6716136
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2307
        "start_memory" => integer 6721072
        "stop_time" => float 1398264983.2308
        "stop_memory" => integer 6721656
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2317
        "start_memory" => integer 6736736
        "stop_time" => float 1398264983.2318
        "stop_memory" => integer 6737296
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2319
        "start_memory" => integer 6742232
        "stop_time" => float 1398264983.232
        "stop_memory" => integer 6742816
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2329
        "start_memory" => integer 6757872
        "stop_time" => float 1398264983.233
        "stop_memory" => integer 6758432
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2331
        "start_memory" => integer 6763368
        "stop_time" => float 1398264983.2332
        "stop_memory" => integer 6763952
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2341
        "start_memory" => integer 6779000
        "stop_time" => float 1398264983.2342
        "stop_memory" => integer 6779560
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2343
        "start_memory" => integer 6784496
        "stop_time" => float 1398264983.2344
        "stop_memory" => integer 6785080
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2353
        "start_memory" => integer 6800264
        "stop_time" => float 1398264983.2354
        "stop_memory" => integer 6800824
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2355
        "start_memory" => integer 6805760
        "stop_time" => float 1398264983.2356
        "stop_memory" => integer 6806344
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2365
        "start_memory" => integer 6821416
        "stop_time" => float 1398264983.2365
        "stop_memory" => integer 6821976
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2367
        "start_memory" => integer 6826912
        "stop_time" => float 1398264983.2367
        "stop_memory" => integer 6827496
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2376
        "start_memory" => integer 6842552
        "stop_time" => float 1398264983.2394
        "stop_memory" => integer 6843112
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2395
        "start_memory" => integer 6848048
        "stop_time" => float 1398264983.2396
        "stop_memory" => integer 6848632
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2407
        "start_memory" => integer 6863680
        "stop_time" => float 1398264983.2408
        "stop_memory" => integer 6864240
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2409
        "start_memory" => integer 6869176
        "stop_time" => float 1398264983.241
        "stop_memory" => integer 6869760
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2419
        "start_memory" => integer 6884784
        "stop_time" => float 1398264983.2419
        "stop_memory" => integer 6885344
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.242
        "start_memory" => integer 6890280
        "stop_time" => float 1398264983.2421
        "stop_memory" => integer 6890864
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2428
        "start_memory" => integer 6905888
        "stop_time" => float 1398264983.2428
        "stop_memory" => integer 6906448
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.243
        "start_memory" => integer 6911384
        "stop_time" => float 1398264983.243
        "stop_memory" => integer 6911968
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2439
        "start_memory" => integer 6927024
        "stop_time" => float 1398264983.244
        "stop_memory" => integer 6927584
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2441
        "start_memory" => integer 6932520
        "stop_time" => float 1398264983.2442
        "stop_memory" => integer 6933104
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2451
        "start_memory" => integer 6948144
        "stop_time" => float 1398264983.2451
        "stop_memory" => integer 6948704
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2453
        "start_memory" => integer 6953640
        "stop_time" => float 1398264983.2453
        "stop_memory" => integer 6954224
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2476
        "start_memory" => integer 6969488
        "stop_time" => float 1398264983.2477
        "stop_memory" => integer 6970048
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2479
        "start_memory" => integer 6974960
        "stop_time" => float 1398264983.248
        "stop_memory" => integer 6975528
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2527
        "start_memory" => integer 7013552
        "stop_time" => float 1398264983.2528
        "stop_memory" => integer 7014104
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.253
        "start_memory" => integer 7018776
        "stop_time" => float 1398264983.2531
        "stop_memory" => integer 7019352
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2551
        "start_memory" => integer 7150416
        "stop_time" => float 1398264983.2552
        "stop_memory" => integer 7150968
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2553
        "start_memory" => integer 7155648
        "stop_time" => float 1398264983.2554
        "stop_memory" => integer 7156224
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2576
        "start_memory" => integer 7325376
        "stop_time" => float 1398264983.2577
        "stop_memory" => integer 7325928
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2578
        "start_memory" => integer 7330616
        "stop_time" => float 1398264983.2579
        "stop_memory" => integer 7331176
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2616
        "start_memory" => integer 7386840
        "stop_time" => float 1398264983.2617
        "stop_memory" => integer 7387416
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2619
        "start_memory" => integer 7392328
        "stop_time" => float 1398264983.262
        "stop_memory" => integer 7392896
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.263
        "start_memory" => integer 7432928
        "stop_time" => float 1398264983.263
        "stop_memory" => integer 7433504
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2631
        "start_memory" => integer 7438456
        "stop_time" => float 1398264983.2632
        "stop_memory" => integer 7439048
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2651
        "start_memory" => integer 7464992
        "stop_time" => float 1398264983.2652
        "stop_memory" => integer 7465560
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2653
        "start_memory" => integer 7470432
        "stop_time" => float 1398264983.2654
        "stop_memory" => integer 7471008
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.268
        "start_memory" => integer 7497064
        "stop_time" => float 1398264983.268
        "stop_memory" => integer 7497640
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2725
        "start_memory" => integer 7508544
        "stop_time" => float 1398264983.2727
        "stop_memory" => integer 7509104
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.273
        "start_memory" => integer 7518968
        "stop_time" => float 1398264983.2731
        "stop_memory" => integer 7519536
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2749
        "start_memory" => integer 7530136
        "stop_time" => float 1398264983.275
        "stop_memory" => integer 7530688
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2752
        "start_memory" => integer 7535416
        "stop_time" => float 1398264983.2753
        "stop_memory" => integer 7535992
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2761
        "start_memory" => integer 7541456
        "stop_time" => float 1398264983.2762
        "stop_memory" => integer 7542008
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2764
        "start_memory" => integer 7546736
        "stop_time" => float 1398264983.2767
        "stop_memory" => integer 7547312
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2776
        "start_memory" => integer 7552760
        "stop_time" => float 1398264983.2777
        "stop_memory" => integer 7553312
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2778
        "start_memory" => integer 7558064
        "stop_time" => float 1398264983.2779
        "stop_memory" => integer 7558640
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2796
        "start_memory" => integer 7570648
        "stop_time" => float 1398264983.2803
        "stop_memory" => integer 7571184
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2805
        "start_memory" => integer 7575848
        "stop_time" => float 1398264983.2806
        "stop_memory" => integer 7576416
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.282
        "start_memory" => integer 7579464
        "stop_time" => float 1398264983.2825
        "stop_memory" => integer 7580040
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2826
        "start_memory" => integer 7589312
        "stop_time" => float 1398264983.2827
        "stop_memory" => integer 7589848
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2829
        "start_memory" => integer 7596568
        "stop_time" => float 1398264983.283
        "stop_memory" => integer 7597136
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2866
        "start_memory" => integer 7974528
        "stop_time" => float 1398264983.2868
        "stop_memory" => integer 7975104
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2879
        "start_memory" => integer 8049576
        "stop_time" => float 1398264983.288
        "stop_memory" => integer 8050160
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2889
        "start_memory" => integer 8095392
        "stop_time" => float 1398264983.289
        "stop_memory" => integer 8095952
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2891
        "start_memory" => integer 8100816
        "stop_time" => float 1398264983.2891
        "stop_memory" => integer 8101400
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2901
        "start_memory" => integer 8110360
        "stop_time" => float 1398264983.2902
        "stop_memory" => integer 8110904
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.291
        "start_memory" => integer 8142368
        "stop_time" => float 1398264983.2911
        "stop_memory" => integer 8142928
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2919
        "start_memory" => integer 8177360
        "stop_time" => float 1398264983.2919
        "stop_memory" => integer 8177936
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2927
        "start_memory" => integer 8210048
        "stop_time" => float 1398264983.2928
        "stop_memory" => integer 8210584
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2929
        "start_memory" => integer 8215240
        "stop_time" => float 1398264983.293
        "stop_memory" => integer 8215808
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2969
        "start_memory" => integer 8257616
        "stop_time" => float 1398264983.297
        "stop_memory" => integer 8258208
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.2971
        "start_memory" => integer 8263392
        "stop_time" => float 1398264983.2972
        "stop_memory" => integer 8263984
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3011
        "start_memory" => integer 8308088
        "stop_time" => float 1398264983.3012
        "stop_memory" => integer 8308640
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3014
        "start_memory" => integer 8313576
        "stop_time" => float 1398264983.3015
        "stop_memory" => integer 8314160
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3077
        "start_memory" => integer 8415848
        "stop_time" => float 1398264983.3078
        "stop_memory" => integer 8416376
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.308
        "start_memory" => integer 8421032
        "stop_time" => float 1398264983.308
        "stop_memory" => integer 8421600
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3089
        "start_memory" => integer 8436528
        "stop_time" => float 1398264983.309
        "stop_memory" => integer 8437080
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3091
        "start_memory" => integer 8441728
        "stop_time" => float 1398264983.3092
        "stop_memory" => integer 8442296
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3103
        "start_memory" => integer 8508728
        "stop_time" => float 1398264983.3104
        "stop_memory" => integer 8509288
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3105
        "start_memory" => integer 8514144
        "stop_time" => float 1398264983.3106
        "stop_memory" => integer 8514720
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3113
        "start_memory" => integer 8538160
        "stop_time" => float 1398264983.3114
        "stop_memory" => integer 8538768
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3115
        "start_memory" => integer 8543688
        "stop_time" => float 1398264983.3115
        "stop_memory" => integer 8544280
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3133
        "start_memory" => integer 8615248
        "stop_time" => float 1398264983.3134
        "stop_memory" => integer 8615784
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3135
        "start_memory" => integer 8620656
        "stop_time" => float 1398264983.3136
        "stop_memory" => integer 8621208
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3147
        "start_memory" => integer 8648912
        "stop_time" => float 1398264983.3148
        "stop_memory" => integer 8649448
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3149
        "start_memory" => integer 8654104
        "stop_time" => float 1398264983.3149
        "stop_memory" => integer 8654672
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3163
        "start_memory" => integer 8775896
        "stop_time" => float 1398264983.3164
        "stop_memory" => integer 8776440
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3165
        "start_memory" => integer 8781112
        "stop_time" => float 1398264983.3166
        "stop_memory" => integer 8781680
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3241
        "start_memory" => integer 8813064
        "stop_time" => float 1398264983.3242
        "stop_memory" => integer 8813608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3243
        "start_memory" => integer 8818256
        "stop_time" => float 1398264983.3245
        "stop_memory" => integer 8818824
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3258
        "start_memory" => integer 8919144
        "stop_time" => float 1398264983.326
        "stop_memory" => integer 8919704
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3261
        "start_memory" => integer 8924416
        "stop_time" => float 1398264983.3262
        "stop_memory" => integer 8924992
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3276
        "start_memory" => integer 9032736
        "stop_time" => float 1398264983.3277
        "stop_memory" => integer 9033304
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3279
        "start_memory" => integer 9038224
        "stop_time" => float 1398264983.328
        "stop_memory" => integer 9038808
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3293
        "start_memory" => integer 9059992
        "stop_time" => float 1398264983.3294
        "stop_memory" => integer 9060568
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3299
        "start_memory" => integer 9025072
        "stop_time" => float 1398264983.33
        "stop_memory" => integer 9027008
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.3309
        "start_memory" => integer 9097728
        "stop_time" => float 1398264983.331
        "stop_memory" => integer 9099456
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1398264983.331
        "start_memory" => integer 9099216
        "stop_time" => float 1398264983.3311
        "stop_memory" => integer 9100944
    )
)

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