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 1416717045.8473
        "start_memory" => integer 1695736
        "stop_time" => float 1416717046.098
        "stop_memory" => integer 8468552
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8474
        "start_memory" => integer 1698552
        "stop_time" => float 1416717045.8474
        "stop_memory" => integer 1699144
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.848
        "start_memory" => integer 1827536
        "stop_time" => float 1416717045.8481
        "stop_memory" => integer 1828096
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8481
        "start_memory" => integer 1833528
        "stop_time" => float 1416717045.8482
        "stop_memory" => integer 1834112
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8483
        "start_memory" => integer 1844808
        "stop_time" => float 1416717045.8483
        "stop_memory" => integer 1845352
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8484
        "start_memory" => integer 1850232
        "stop_time" => float 1416717045.8484
        "stop_memory" => integer 1850808
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8486
        "start_memory" => integer 1854192
        "stop_time" => float 1416717045.8486
        "stop_memory" => integer 1854776
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8517
        "start_memory" => integer 2438648
        "stop_time" => float 1416717045.8518
        "stop_memory" => integer 2439224
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8519
        "start_memory" => integer 2444096
        "stop_time" => float 1416717045.8519
        "stop_memory" => integer 2444736
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8523
        "start_memory" => integer 2590472
        "stop_time" => float 1416717045.8524
        "stop_memory" => integer 2591000
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8524
        "start_memory" => integer 2595648
        "stop_time" => float 1416717045.8525
        "stop_memory" => integer 2596216
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8528
        "start_memory" => integer 2627976
        "stop_time" => float 1416717045.8528
        "stop_memory" => integer 2628528
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8529
        "start_memory" => integer 2633168
        "stop_time" => float 1416717045.8529
        "stop_memory" => integer 2633736
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8537
        "start_memory" => integer 2800120
        "stop_time" => float 1416717045.8537
        "stop_memory" => integer 2800664
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8538
        "start_memory" => integer 2805304
        "stop_time" => float 1416717045.8539
        "stop_memory" => integer 2805872
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8541
        "start_memory" => integer 2860392
        "stop_time" => float 1416717045.8542
        "stop_memory" => integer 2860984
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8542
        "start_memory" => integer 2862904
        "stop_time" => float 1416717045.8543
        "stop_memory" => integer 2863592
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8543
        "start_memory" => integer 2868472
        "stop_time" => float 1416717045.8544
        "stop_memory" => integer 2869056
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8545
        "start_memory" => integer 2871768
        "stop_time" => float 1416717045.8545
        "stop_memory" => integer 2872328
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8546
        "start_memory" => integer 2877208
        "stop_time" => float 1416717045.8546
        "stop_memory" => integer 2877792
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8549
        "start_memory" => integer 2927288
        "stop_time" => float 1416717045.8549
        "stop_memory" => integer 2927832
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.855
        "start_memory" => integer 2932504
        "stop_time" => float 1416717045.8551
        "stop_memory" => integer 2933080
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8556
        "start_memory" => integer 3029440
        "stop_time" => float 1416717045.8556
        "stop_memory" => integer 3029976
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8557
        "start_memory" => integer 3034616
        "stop_time" => float 1416717045.8557
        "stop_memory" => integer 3035184
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.8569
        "start_memory" => integer 3117760
        "stop_time" => float 1416717045.857
        "stop_memory" => integer 3118352
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.926
        "start_memory" => integer 3157632
        "stop_time" => float 1416717045.926
        "stop_memory" => integer 3158200
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9261
        "start_memory" => integer 3162864
        "stop_time" => float 1416717045.9261
        "stop_memory" => integer 3163440
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9269
        "start_memory" => integer 3217384
        "stop_time" => float 1416717045.9269
        "stop_memory" => integer 3217936
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.927
        "start_memory" => integer 3222776
        "stop_time" => float 1416717045.927
        "stop_memory" => integer 3223352
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9276
        "start_memory" => integer 3248384
        "stop_time" => float 1416717045.9276
        "stop_memory" => integer 3248936
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9277
        "start_memory" => integer 3253648
        "stop_time" => float 1416717045.9277
        "stop_memory" => integer 3254224
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9285
        "start_memory" => integer 3327344
        "stop_time" => float 1416717045.9285
        "stop_memory" => integer 3327928
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9286
        "start_memory" => integer 3345944
        "stop_time" => float 1416717045.9287
        "stop_memory" => integer 3346760
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9287
        "start_memory" => integer 3351624
        "stop_time" => float 1416717045.9288
        "stop_memory" => integer 3352208
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9293
        "start_memory" => integer 3417336
        "stop_time" => float 1416717045.9293
        "stop_memory" => integer 3417912
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9296
        "start_memory" => integer 3437312
        "stop_time" => float 1416717045.9297
        "stop_memory" => integer 3437888
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.93
        "start_memory" => integer 3485936
        "stop_time" => float 1416717045.93
        "stop_memory" => integer 3486512
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9302
        "start_memory" => integer 3498208
        "stop_time" => float 1416717045.9303
        "stop_memory" => integer 3498800
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9305
        "start_memory" => integer 3516816
        "stop_time" => float 1416717045.9305
        "stop_memory" => integer 3517392
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9307
        "start_memory" => integer 3527072
        "stop_time" => float 1416717045.9307
        "stop_memory" => integer 3527648
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.931
        "start_memory" => integer 3547776
        "stop_time" => float 1416717045.931
        "stop_memory" => integer 3548352
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9312
        "start_memory" => integer 3568832
        "stop_time" => float 1416717045.9312
        "stop_memory" => integer 3569424
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9314
        "start_memory" => integer 3582648
        "stop_time" => float 1416717045.9315
        "stop_memory" => integer 3583216
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9316
        "start_memory" => integer 3595440
        "stop_time" => float 1416717045.9317
        "stop_memory" => integer 3596016
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9319
        "start_memory" => integer 3644280
        "stop_time" => float 1416717045.9319
        "stop_memory" => integer 3644840
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9322
        "start_memory" => integer 3683312
        "stop_time" => float 1416717045.9322
        "stop_memory" => integer 3683896
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9325
        "start_memory" => integer 3703296
        "stop_time" => float 1416717045.9325
        "stop_memory" => integer 3703872
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9328
        "start_memory" => integer 3735048
        "stop_time" => float 1416717045.9329
        "stop_memory" => integer 3735624
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9331
        "start_memory" => integer 3754336
        "stop_time" => float 1416717045.9331
        "stop_memory" => integer 3754880
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9332
        "start_memory" => integer 3759552
        "stop_time" => float 1416717045.9332
        "stop_memory" => integer 3760128
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9406
        "start_memory" => integer 3880816
        "stop_time" => float 1416717045.9406
        "stop_memory" => integer 3881368
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9407
        "start_memory" => integer 3886200
        "stop_time" => float 1416717045.9408
        "stop_memory" => integer 3886776
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9441
        "start_memory" => integer 3912256
        "stop_time" => float 1416717045.9442
        "stop_memory" => integer 3912840
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9442
        "start_memory" => integer 3917776
        "stop_time" => float 1416717045.9443
        "stop_memory" => integer 3918352
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9477
        "start_memory" => integer 3943928
        "stop_time" => float 1416717045.9477
        "stop_memory" => integer 3944488
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9478
        "start_memory" => integer 3949344
        "stop_time" => float 1416717045.9478
        "stop_memory" => integer 3949912
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9482
        "start_memory" => integer 4037280
        "stop_time" => float 1416717045.9483
        "stop_memory" => integer 4037880
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9528
        "start_memory" => integer 4044808
        "stop_time" => float 1416717045.9529
        "stop_memory" => integer 4045360
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.953
        "start_memory" => integer 4050240
        "stop_time" => float 1416717045.953
        "stop_memory" => integer 4050824
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9653
        "start_memory" => integer 4107712
        "stop_time" => float 1416717045.9653
        "stop_memory" => integer 4108272
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9655
        "start_memory" => integer 4113192
        "stop_time" => float 1416717045.9655
        "stop_memory" => integer 4113776
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9656
        "start_memory" => integer 4137032
        "stop_time" => float 1416717045.9657
        "stop_memory" => integer 4137624
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9662
        "start_memory" => integer 4146728
        "stop_time" => float 1416717045.9662
        "stop_memory" => integer 4147288
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9663
        "start_memory" => integer 4152152
        "stop_time" => float 1416717045.9663
        "stop_memory" => integer 4152736
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9673
        "start_memory" => integer 4232192
        "stop_time" => float 1416717045.9673
        "stop_memory" => integer 4233264
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9674
        "start_memory" => integer 4238144
        "stop_time" => float 1416717045.9674
        "stop_memory" => integer 4238728
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9719
        "start_memory" => integer 4264416
        "stop_time" => float 1416717045.9719
        "stop_memory" => integer 4264976
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.972
        "start_memory" => integer 4269840
        "stop_time" => float 1416717045.972
        "stop_memory" => integer 4270424
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9728
        "start_memory" => integer 4291832
        "stop_time" => float 1416717045.9729
        "stop_memory" => integer 4292360
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.973
        "start_memory" => integer 4297008
        "stop_time" => float 1416717045.973
        "stop_memory" => integer 4297576
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9755
        "start_memory" => integer 4308480
        "stop_time" => float 1416717045.9755
        "stop_memory" => integer 4309072
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9762
        "start_memory" => integer 4319856
        "stop_time" => float 1416717045.9762
        "stop_memory" => integer 4320432
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9764
        "start_memory" => integer 4359032
        "stop_time" => float 1416717045.9765
        "stop_memory" => integer 4359520
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9782
        "start_memory" => integer 4360696
        "stop_time" => float 1416717045.9782
        "stop_memory" => integer 4361272
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9802
        "start_memory" => integer 4390280
        "stop_time" => float 1416717045.9802
        "stop_memory" => integer 4390824
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9803
        "start_memory" => integer 4395680
        "stop_time" => float 1416717045.9803
        "stop_memory" => integer 4396256
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9846
        "start_memory" => integer 4410768
        "stop_time" => float 1416717045.9847
        "stop_memory" => integer 4411336
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9863
        "start_memory" => integer 4416176
        "stop_time" => float 1416717045.9864
        "stop_memory" => integer 4416712
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9865
        "start_memory" => integer 4421360
        "stop_time" => float 1416717045.9866
        "stop_memory" => integer 4421928
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9872
        "start_memory" => integer 4449712
        "stop_time" => float 1416717045.9873
        "stop_memory" => integer 4450288
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9874
        "start_memory" => integer 4455128
        "stop_time" => float 1416717045.9874
        "stop_memory" => integer 4455712
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9898
        "start_memory" => integer 4575784
        "stop_time" => float 1416717045.9898
        "stop_memory" => integer 4576360
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9899
        "start_memory" => integer 4581312
        "stop_time" => float 1416717045.99
        "stop_memory" => integer 4581904
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.99
        "start_memory" => integer 4587064
        "stop_time" => float 1416717045.9901
        "stop_memory" => integer 4587616
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9909
        "start_memory" => integer 4607064
        "stop_time" => float 1416717045.9909
        "stop_memory" => integer 4607656
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.991
        "start_memory" => integer 4612616
        "stop_time" => float 1416717045.9911
        "stop_memory" => integer 4613208
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9924
        "start_memory" => integer 4619168
        "stop_time" => float 1416717045.9924
        "stop_memory" => integer 4619720
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9925
        "start_memory" => integer 4624592
        "stop_time" => float 1416717045.9925
        "stop_memory" => integer 4625168
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9937
        "start_memory" => integer 4757080
        "stop_time" => float 1416717045.9937
        "stop_memory" => integer 4757656
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9938
        "start_memory" => integer 4762616
        "stop_time" => float 1416717045.9939
        "stop_memory" => integer 4763208
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.994
        "start_memory" => integer 4783888
        "stop_time" => float 1416717045.994
        "stop_memory" => integer 4784456
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9942
        "start_memory" => integer 4789344
        "stop_time" => float 1416717045.9942
        "stop_memory" => integer 4789920
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9953
        "start_memory" => integer 4851952
        "stop_time" => float 1416717045.9953
        "stop_memory" => integer 4852512
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9954
        "start_memory" => integer 4857384
        "stop_time" => float 1416717045.9955
        "stop_memory" => integer 4857968
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9964
        "start_memory" => integer 4916176
        "stop_time" => float 1416717045.9965
        "stop_memory" => integer 4916736
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9966
        "start_memory" => integer 4921600
        "stop_time" => float 1416717045.9967
        "stop_memory" => integer 4922184
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9976
        "start_memory" => integer 4964760
        "stop_time" => float 1416717045.9977
        "stop_memory" => integer 4965336
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9978
        "start_memory" => integer 4970304
        "stop_time" => float 1416717045.9978
        "stop_memory" => integer 4970896
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9987
        "start_memory" => integer 5020840
        "stop_time" => float 1416717045.9988
        "stop_memory" => integer 5021424
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9989
        "start_memory" => integer 5026488
        "stop_time" => float 1416717045.999
        "stop_memory" => integer 5027088
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9992
        "start_memory" => integer 5047768
        "stop_time" => float 1416717045.9992
        "stop_memory" => integer 5048344
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717045.9993
        "start_memory" => integer 5054416
        "stop_time" => float 1416717045.9993
        "stop_memory" => integer 5055016
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0003
        "start_memory" => integer 5117976
        "stop_time" => float 1416717046.0003
        "stop_memory" => integer 5118552
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0004
        "start_memory" => integer 5123616
        "stop_time" => float 1416717046.0005
        "stop_memory" => integer 5124216
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0018
        "start_memory" => integer 5171816
        "stop_time" => float 1416717046.0018
        "stop_memory" => integer 5172392
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.002
        "start_memory" => integer 5177448
        "stop_time" => float 1416717046.002
        "stop_memory" => integer 5178048
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0031
        "start_memory" => integer 5210104
        "stop_time" => float 1416717046.0031
        "stop_memory" => integer 5210680
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0032
        "start_memory" => integer 5215744
        "stop_time" => float 1416717046.0033
        "stop_memory" => integer 5216344
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0046
        "start_memory" => integer 5316192
        "stop_time" => float 1416717046.0047
        "stop_memory" => integer 5316768
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0048
        "start_memory" => integer 5321832
        "stop_time" => float 1416717046.0048
        "stop_memory" => integer 5322432
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0071
        "start_memory" => integer 5370320
        "stop_time" => float 1416717046.0072
        "stop_memory" => integer 5370880
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0073
        "start_memory" => integer 5375848
        "stop_time" => float 1416717046.0073
        "stop_memory" => integer 5376440
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0083
        "start_memory" => integer 5399568
        "stop_time" => float 1416717046.0084
        "stop_memory" => integer 5400088
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0085
        "start_memory" => integer 5404728
        "stop_time" => float 1416717046.0085
        "stop_memory" => integer 5405296
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0098
        "start_memory" => integer 5514368
        "stop_time" => float 1416717046.0098
        "stop_memory" => integer 5514928
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0099
        "start_memory" => integer 5519600
        "stop_time" => float 1416717046.01
        "stop_memory" => integer 5520176
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0149
        "start_memory" => integer 5539928
        "stop_time" => float 1416717046.015
        "stop_memory" => integer 5540464
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0151
        "start_memory" => integer 5545112
        "stop_time" => float 1416717046.0152
        "stop_memory" => integer 5545680
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0176
        "start_memory" => integer 5582304
        "stop_time" => float 1416717046.0177
        "stop_memory" => integer 5582848
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0178
        "start_memory" => integer 5587488
        "stop_time" => float 1416717046.0179
        "stop_memory" => integer 5588056
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0186
        "start_memory" => integer 5630432
        "stop_time" => float 1416717046.0187
        "stop_memory" => integer 5630976
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0187
        "start_memory" => integer 5635632
        "stop_time" => float 1416717046.0188
        "stop_memory" => integer 5636200
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0193
        "start_memory" => integer 5665544
        "stop_time" => float 1416717046.0194
        "stop_memory" => integer 5666088
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0195
        "start_memory" => integer 5670728
        "stop_time" => float 1416717046.0195
        "stop_memory" => integer 5671296
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0205
        "start_memory" => integer 5746304
        "stop_time" => float 1416717046.0205
        "stop_memory" => integer 5746848
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0206
        "start_memory" => integer 5751504
        "stop_time" => float 1416717046.0206
        "stop_memory" => integer 5752072
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0224
        "start_memory" => integer 5774200
        "stop_time" => float 1416717046.0224
        "stop_memory" => integer 5774744
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0225
        "start_memory" => integer 5779384
        "stop_time" => float 1416717046.0225
        "stop_memory" => integer 5779952
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0241
        "start_memory" => integer 5800808
        "stop_time" => float 1416717046.0242
        "stop_memory" => integer 5802392
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0243
        "start_memory" => integer 5807088
        "stop_time" => float 1416717046.0243
        "stop_memory" => integer 5807664
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0254
        "start_memory" => integer 5935024
        "stop_time" => float 1416717046.0254
        "stop_memory" => integer 5935576
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0255
        "start_memory" => integer 5940256
        "stop_time" => float 1416717046.0256
        "stop_memory" => integer 5940832
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0267
        "start_memory" => integer 6107848
        "stop_time" => float 1416717046.0268
        "stop_memory" => integer 6108400
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0269
        "start_memory" => integer 6113088
        "stop_time" => float 1416717046.0269
        "stop_memory" => integer 6113648
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0291
        "start_memory" => integer 6169216
        "stop_time" => float 1416717046.0292
        "stop_memory" => integer 6169792
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0293
        "start_memory" => integer 6174664
        "stop_time" => float 1416717046.0293
        "stop_memory" => integer 6175248
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0305
        "start_memory" => integer 6215304
        "stop_time" => float 1416717046.0306
        "stop_memory" => integer 6215880
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0307
        "start_memory" => integer 6220832
        "stop_time" => float 1416717046.0307
        "stop_memory" => integer 6221424
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0317
        "start_memory" => integer 6247368
        "stop_time" => float 1416717046.0318
        "stop_memory" => integer 6247936
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0318
        "start_memory" => integer 6252808
        "stop_time" => float 1416717046.0319
        "stop_memory" => integer 6253384
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0336
        "start_memory" => integer 6279288
        "stop_time" => float 1416717046.0336
        "stop_memory" => integer 6279864
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0358
        "start_memory" => integer 6289360
        "stop_time" => float 1416717046.0358
        "stop_memory" => integer 6289936
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0411
        "start_memory" => integer 6326056
        "stop_time" => float 1416717046.0412
        "stop_memory" => integer 6326616
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0413
        "start_memory" => integer 6335088
        "stop_time" => float 1416717046.0413
        "stop_memory" => integer 6335576
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0424
        "start_memory" => integer 6335832
        "stop_time" => float 1416717046.0425
        "stop_memory" => integer 6336400
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0437
        "start_memory" => integer 6342872
        "stop_time" => float 1416717046.0437
        "stop_memory" => integer 6343440
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0446
        "start_memory" => integer 6355248
        "stop_time" => float 1416717046.0446
        "stop_memory" => integer 6355832
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.045
        "start_memory" => integer 6364568
        "stop_time" => float 1416717046.0451
        "stop_memory" => integer 6365144
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0455
        "start_memory" => integer 6368224
        "stop_time" => float 1416717046.0455
        "stop_memory" => integer 6368784
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0457
        "start_memory" => integer 6377128
        "stop_time" => float 1416717046.0458
        "stop_memory" => integer 6377696
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.046
        "start_memory" => integer 6386000
        "stop_time" => float 1416717046.046
        "stop_memory" => integer 6386536
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0461
        "start_memory" => integer 6391184
        "stop_time" => float 1416717046.0461
        "stop_memory" => integer 6391752
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0467
        "start_memory" => integer 6401072
        "stop_time" => float 1416717046.0467
        "stop_memory" => integer 6401648
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0468
        "start_memory" => integer 6410352
        "stop_time" => float 1416717046.0468
        "stop_memory" => integer 6410888
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0469
        "start_memory" => integer 6415536
        "stop_time" => float 1416717046.0469
        "stop_memory" => integer 6416104
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0485
        "start_memory" => integer 6766512
        "stop_time" => float 1416717046.0486
        "stop_memory" => integer 6767088
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0492
        "start_memory" => integer 6850504
        "stop_time" => float 1416717046.0492
        "stop_memory" => integer 6851088
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0497
        "start_memory" => integer 6894248
        "stop_time" => float 1416717046.0497
        "stop_memory" => integer 6894792
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0543
        "start_memory" => integer 6924184
        "stop_time" => float 1416717046.0543
        "stop_memory" => integer 6924744
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0547
        "start_memory" => integer 6956648
        "stop_time" => float 1416717046.0548
        "stop_memory" => integer 6957224
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0553
        "start_memory" => integer 6987544
        "stop_time" => float 1416717046.0553
        "stop_memory" => integer 6988080
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0554
        "start_memory" => integer 6992728
        "stop_time" => float 1416717046.0554
        "stop_memory" => integer 6993296
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.056
        "start_memory" => integer 7004304
        "stop_time" => float 1416717046.056
        "stop_memory" => integer 7004864
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0561
        "start_memory" => integer 7009560
        "stop_time" => float 1416717046.0562
        "stop_memory" => integer 7010136
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0567
        "start_memory" => integer 7052944
        "stop_time" => float 1416717046.0568
        "stop_memory" => integer 7053496
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0568
        "start_memory" => integer 7058168
        "stop_time" => float 1416717046.0569
        "stop_memory" => integer 7058744
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0574
        "start_memory" => integer 7072512
        "stop_time" => float 1416717046.0574
        "stop_memory" => integer 7073080
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0575
        "start_memory" => integer 7077952
        "stop_time" => float 1416717046.0575
        "stop_memory" => integer 7078536
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0577
        "start_memory" => integer 7094232
        "stop_time" => float 1416717046.0577
        "stop_memory" => integer 7094792
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0578
        "start_memory" => integer 7099680
        "stop_time" => float 1416717046.0578
        "stop_memory" => integer 7100264
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0581
        "start_memory" => integer 7118344
        "stop_time" => float 1416717046.0581
        "stop_memory" => integer 7118920
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0582
        "start_memory" => integer 7123912
        "stop_time" => float 1416717046.0582
        "stop_memory" => integer 7124504
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0584
        "start_memory" => integer 7129952
        "stop_time" => float 1416717046.0584
        "stop_memory" => integer 7130520
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0585
        "start_memory" => integer 7135400
        "stop_time" => float 1416717046.0585
        "stop_memory" => integer 7135984
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0586
        "start_memory" => integer 7144680
        "stop_time" => float 1416717046.0587
        "stop_memory" => integer 7145240
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0587
        "start_memory" => integer 7150112
        "stop_time" => float 1416717046.0588
        "stop_memory" => integer 7150696
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0596
        "start_memory" => integer 7248288
        "stop_time" => float 1416717046.0596
        "stop_memory" => integer 7248864
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0597
        "start_memory" => integer 7253848
        "stop_time" => float 1416717046.0597
        "stop_memory" => integer 7254440
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0602
        "start_memory" => integer 7273272
        "stop_time" => float 1416717046.0602
        "stop_memory" => integer 7273856
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0603
        "start_memory" => integer 7278888
        "stop_time" => float 1416717046.0603
        "stop_memory" => integer 7279472
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0608
        "start_memory" => integer 7296296
        "stop_time" => float 1416717046.0608
        "stop_memory" => integer 7296864
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0609
        "start_memory" => integer 7301808
        "stop_time" => float 1416717046.0609
        "stop_memory" => integer 7302400
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0614
        "start_memory" => integer 7321160
        "stop_time" => float 1416717046.0614
        "stop_memory" => integer 7321712
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0615
        "start_memory" => integer 7326576
        "stop_time" => float 1416717046.0615
        "stop_memory" => integer 7327160
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0616
        "start_memory" => integer 7334536
        "stop_time" => float 1416717046.0616
        "stop_memory" => integer 7335096
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0617
        "start_memory" => integer 7339968
        "stop_time" => float 1416717046.0617
        "stop_memory" => integer 7340552
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0622
        "start_memory" => integer 7353744
        "stop_time" => float 1416717046.0622
        "stop_memory" => integer 7354320
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0623
        "start_memory" => integer 7359272
        "stop_time" => float 1416717046.0624
        "stop_memory" => integer 7359864
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0628
        "start_memory" => integer 7364544
        "stop_time" => float 1416717046.0628
        "stop_memory" => integer 7365096
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0629
        "start_memory" => integer 7369976
        "stop_time" => float 1416717046.0629
        "stop_memory" => integer 7370560
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0634
        "start_memory" => integer 7385848
        "stop_time" => float 1416717046.0634
        "stop_memory" => integer 7386408
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0635
        "start_memory" => integer 7391288
        "stop_time" => float 1416717046.0635
        "stop_memory" => integer 7391872
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0641
        "start_memory" => integer 7429856
        "stop_time" => float 1416717046.0642
        "stop_memory" => integer 7430432
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0642
        "start_memory" => integer 7435392
        "stop_time" => float 1416717046.0643
        "stop_memory" => integer 7435984
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0654
        "start_memory" => integer 7449712
        "stop_time" => float 1416717046.0655
        "stop_memory" => integer 7450280
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0655
        "start_memory" => integer 7455248
        "stop_time" => float 1416717046.0656
        "stop_memory" => integer 7455840
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0668
        "start_memory" => integer 7466176
        "stop_time" => float 1416717046.0669
        "stop_memory" => integer 7466744
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0669
        "start_memory" => integer 7471688
        "stop_time" => float 1416717046.067
        "stop_memory" => integer 7472280
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0675
        "start_memory" => integer 7492640
        "stop_time" => float 1416717046.0675
        "stop_memory" => integer 7493208
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0676
        "start_memory" => integer 7498176
        "stop_time" => float 1416717046.0676
        "stop_memory" => integer 7498768
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0681
        "start_memory" => integer 7518096
        "stop_time" => float 1416717046.0681
        "stop_memory" => integer 7518664
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0682
        "start_memory" => integer 7523688
        "stop_time" => float 1416717046.0683
        "stop_memory" => integer 7524280
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0687
        "start_memory" => integer 7541504
        "stop_time" => float 1416717046.0687
        "stop_memory" => integer 7542072
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0688
        "start_memory" => integer 7547040
        "stop_time" => float 1416717046.0688
        "stop_memory" => integer 7547632
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0693
        "start_memory" => integer 7565968
        "stop_time" => float 1416717046.0694
        "stop_memory" => integer 7566536
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0694
        "start_memory" => integer 7571488
        "stop_time" => float 1416717046.0695
        "stop_memory" => integer 7572080
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0699
        "start_memory" => integer 7592216
        "stop_time" => float 1416717046.0699
        "stop_memory" => integer 7592768
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.07
        "start_memory" => integer 7597648
        "stop_time" => float 1416717046.0701
        "stop_memory" => integer 7598232
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0705
        "start_memory" => integer 7608600
        "stop_time" => float 1416717046.0706
        "stop_memory" => integer 7609160
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0706
        "start_memory" => integer 7614048
        "stop_time" => float 1416717046.0707
        "stop_memory" => integer 7614632
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0711
        "start_memory" => integer 7630128
        "stop_time" => float 1416717046.0712
        "stop_memory" => integer 7630704
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0713
        "start_memory" => integer 7635720
        "stop_time" => float 1416717046.0713
        "stop_memory" => integer 7636312
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0723
        "start_memory" => integer 7647784
        "stop_time" => float 1416717046.0723
        "stop_memory" => integer 7648352
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0724
        "start_memory" => integer 7653368
        "stop_time" => float 1416717046.0724
        "stop_memory" => integer 7653960
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0736
        "start_memory" => integer 7663760
        "stop_time" => float 1416717046.0737
        "stop_memory" => integer 7664328
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0738
        "start_memory" => integer 7669264
        "stop_time" => float 1416717046.0739
        "stop_memory" => integer 7669840
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0745
        "start_memory" => integer 7676024
        "stop_time" => float 1416717046.0745
        "stop_memory" => integer 7676624
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0746
        "start_memory" => integer 7681576
        "stop_time" => float 1416717046.0747
        "stop_memory" => integer 7682168
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0772
        "start_memory" => integer 7692024
        "stop_time" => float 1416717046.0773
        "stop_memory" => integer 7692576
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0774
        "start_memory" => integer 7697456
        "stop_time" => float 1416717046.0774
        "stop_memory" => integer 7698040
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0797
        "start_memory" => integer 7772416
        "stop_time" => float 1416717046.0798
        "stop_memory" => integer 7772944
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0799
        "start_memory" => integer 7777592
        "stop_time" => float 1416717046.08
        "stop_memory" => integer 7778160
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0853
        "start_memory" => integer 7804216
        "stop_time" => float 1416717046.0854
        "stop_memory" => integer 7804760
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0855
        "start_memory" => integer 7809416
        "stop_time" => float 1416717046.0855
        "stop_memory" => integer 7809984
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0864
        "start_memory" => integer 7841784
        "stop_time" => float 1416717046.0865
        "stop_memory" => integer 7842328
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0866
        "start_memory" => integer 7846976
        "stop_time" => float 1416717046.0867
        "stop_memory" => integer 7847544
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0875
        "start_memory" => integer 7913848
        "stop_time" => float 1416717046.0876
        "stop_memory" => integer 7914408
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0876
        "start_memory" => integer 7919264
        "stop_time" => float 1416717046.0877
        "stop_memory" => integer 7919840
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0882
        "start_memory" => integer 7943288
        "stop_time" => float 1416717046.0882
        "stop_memory" => integer 7943872
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0883
        "start_memory" => integer 7950840
        "stop_time" => float 1416717046.0884
        "stop_memory" => integer 7951432
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0894
        "start_memory" => integer 8024144
        "stop_time" => float 1416717046.0895
        "stop_memory" => integer 8024680
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0895
        "start_memory" => integer 8029552
        "stop_time" => float 1416717046.0896
        "stop_memory" => integer 8030128
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.09
        "start_memory" => integer 8057888
        "stop_time" => float 1416717046.0901
        "stop_memory" => integer 8058424
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0902
        "start_memory" => integer 8063080
        "stop_time" => float 1416717046.0902
        "stop_memory" => integer 8063648
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0911
        "start_memory" => integer 8184496
        "stop_time" => float 1416717046.0912
        "stop_memory" => integer 8185040
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0913
        "start_memory" => integer 8189704
        "stop_time" => float 1416717046.0913
        "stop_memory" => integer 8190272
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0953
        "start_memory" => integer 8228984
        "stop_time" => float 1416717046.0954
        "stop_memory" => integer 8229528
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0954
        "start_memory" => integer 8234184
        "stop_time" => float 1416717046.0955
        "stop_memory" => integer 8234752
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0967
        "start_memory" => integer 8475688
        "stop_time" => float 1416717046.0968
        "stop_memory" => integer 8476264
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0968
        "start_memory" => integer 8481200
        "stop_time" => float 1416717046.0969
        "stop_memory" => integer 8481784
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0976
        "start_memory" => integer 8499800
        "stop_time" => float 1416717046.0976
        "stop_memory" => integer 8500376
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1416717046.0979
        "start_memory" => integer 8467056
        "stop_time" => float 1416717046.0979
        "stop_memory" => integer 8469168
    )
)

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