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(248) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1425213056.3363
        "start_memory" => integer 1988816
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3363
        "start_memory" => integer 1991160
        "stop_time" => float 1425213056.3364
        "stop_memory" => integer 1991752
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3364
        "start_memory" => integer 1996704
        "stop_time" => float 1425213056.3365
        "stop_memory" => integer 1997296
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3371
        "start_memory" => integer 2122840
        "stop_time" => float 1425213056.3371
        "stop_memory" => integer 2123392
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3372
        "start_memory" => integer 2128312
        "stop_time" => float 1425213056.3372
        "stop_memory" => integer 2128920
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3373
        "start_memory" => integer 2140008
        "stop_time" => float 1425213056.3374
        "stop_memory" => integer 2140552
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3375
        "start_memory" => integer 2145264
        "stop_time" => float 1425213056.3375
        "stop_memory" => integer 2145840
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3376
        "start_memory" => integer 2155120
        "stop_time" => float 1425213056.3377
        "stop_memory" => integer 2155656
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3378
        "start_memory" => integer 2160312
        "stop_time" => float 1425213056.3378
        "stop_memory" => integer 2160960
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3388
        "start_memory" => integer 2321712
        "stop_time" => float 1425213056.3389
        "stop_memory" => integer 2322272
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.339
        "start_memory" => integer 2327120
        "stop_time" => float 1425213056.339
        "stop_memory" => integer 2327696
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3391
        "start_memory" => integer 2341168
        "stop_time" => float 1425213056.3392
        "stop_memory" => integer 2341720
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3392
        "start_memory" => integer 2346352
        "stop_time" => float 1425213056.3393
        "stop_memory" => integer 2346920
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3396
        "start_memory" => integer 2401744
        "stop_time" => float 1425213056.3396
        "stop_memory" => integer 2402336
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3396
        "start_memory" => integer 2403496
        "stop_time" => float 1425213056.3397
        "stop_memory" => integer 2404072
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3398
        "start_memory" => integer 2408944
        "stop_time" => float 1425213056.3398
        "stop_memory" => integer 2409520
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3401
        "start_memory" => integer 2474968
        "stop_time" => float 1425213056.3402
        "stop_memory" => integer 2475584
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3402
        "start_memory" => integer 2476368
        "stop_time" => float 1425213056.3402
        "stop_memory" => integer 2476944
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.343
        "start_memory" => integer 3145592
        "stop_time" => float 1425213056.343
        "stop_memory" => integer 3146120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3432
        "start_memory" => integer 3151800
        "stop_time" => float 1425213056.3432
        "stop_memory" => integer 3152368
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3436
        "start_memory" => integer 3185112
        "stop_time" => float 1425213056.3436
        "stop_memory" => integer 3185656
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3437
        "start_memory" => integer 3190296
        "stop_time" => float 1425213056.3438
        "stop_memory" => integer 3190864
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3444
        "start_memory" => integer 3352496
        "stop_time" => float 1425213056.3445
        "stop_memory" => integer 3353072
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3446
        "start_memory" => integer 3357952
        "stop_time" => float 1425213056.3446
        "stop_memory" => integer 3358536
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3447
        "start_memory" => integer 3361224
        "stop_time" => float 1425213056.3448
        "stop_memory" => integer 3361784
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3448
        "start_memory" => integer 3366656
        "stop_time" => float 1425213056.3449
        "stop_memory" => integer 3367240
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3452
        "start_memory" => integer 3416904
        "stop_time" => float 1425213056.3452
        "stop_memory" => integer 3417448
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3453
        "start_memory" => integer 3422120
        "stop_time" => float 1425213056.3454
        "stop_memory" => integer 3422696
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3459
        "start_memory" => integer 3520768
        "stop_time" => float 1425213056.3459
        "stop_memory" => integer 3521304
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.346
        "start_memory" => integer 3525944
        "stop_time" => float 1425213056.3461
        "stop_memory" => integer 3526512
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.3477
        "start_memory" => integer 3611128
        "stop_time" => float 1425213056.3478
        "stop_memory" => integer 3611720
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4179
        "start_memory" => integer 3653840
        "stop_time" => float 1425213056.4179
        "stop_memory" => integer 3654408
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.418
        "start_memory" => integer 3659072
        "stop_time" => float 1425213056.4181
        "stop_memory" => integer 3659904
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.419
        "start_memory" => integer 3700504
        "stop_time" => float 1425213056.4191
        "stop_memory" => integer 3701056
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4192
        "start_memory" => integer 3705888
        "stop_time" => float 1425213056.4192
        "stop_memory" => integer 3706464
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.42
        "start_memory" => integer 3730168
        "stop_time" => float 1425213056.42
        "stop_memory" => integer 3730720
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4201
        "start_memory" => integer 3735400
        "stop_time" => float 1425213056.4202
        "stop_memory" => integer 3735976
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.421
        "start_memory" => integer 3803128
        "stop_time" => float 1425213056.421
        "stop_memory" => integer 3803712
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4211
        "start_memory" => integer 3821704
        "stop_time" => float 1425213056.4212
        "stop_memory" => integer 3822264
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4213
        "start_memory" => integer 3827128
        "stop_time" => float 1425213056.4213
        "stop_memory" => integer 3827712
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4219
        "start_memory" => integer 3892840
        "stop_time" => float 1425213056.422
        "stop_memory" => integer 3893416
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4223
        "start_memory" => integer 3912824
        "stop_time" => float 1425213056.4224
        "stop_memory" => integer 3913400
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.423
        "start_memory" => integer 3961440
        "stop_time" => float 1425213056.423
        "stop_memory" => integer 3962016
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4233
        "start_memory" => integer 3972672
        "stop_time" => float 1425213056.4233
        "stop_memory" => integer 3973248
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4238
        "start_memory" => integer 3991256
        "stop_time" => float 1425213056.4238
        "stop_memory" => integer 3991832
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4242
        "start_memory" => integer 4001504
        "stop_time" => float 1425213056.4242
        "stop_memory" => integer 4002080
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4246
        "start_memory" => integer 4022184
        "stop_time" => float 1425213056.4247
        "stop_memory" => integer 4022760
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4252
        "start_memory" => integer 4043264
        "stop_time" => float 1425213056.4252
        "stop_memory" => integer 4043856
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4256
        "start_memory" => integer 4057080
        "stop_time" => float 1425213056.4256
        "stop_memory" => integer 4057648
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4259
        "start_memory" => integer 4069856
        "stop_time" => float 1425213056.426
        "stop_memory" => integer 4070432
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4265
        "start_memory" => integer 4118744
        "stop_time" => float 1425213056.4265
        "stop_memory" => integer 4119304
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4271
        "start_memory" => integer 4157776
        "stop_time" => float 1425213056.4271
        "stop_memory" => integer 4158360
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4275
        "start_memory" => integer 4177760
        "stop_time" => float 1425213056.4277
        "stop_memory" => integer 4178336
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4281
        "start_memory" => integer 4209496
        "stop_time" => float 1425213056.4282
        "stop_memory" => integer 4210072
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4287
        "start_memory" => integer 4228784
        "stop_time" => float 1425213056.4287
        "stop_memory" => integer 4229328
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4289
        "start_memory" => integer 4234000
        "stop_time" => float 1425213056.4289
        "stop_memory" => integer 4234576
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4291
        "start_memory" => integer 4265416
        "stop_time" => float 1425213056.4292
        "stop_memory" => integer 4265952
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4293
        "start_memory" => integer 4270600
        "stop_time" => float 1425213056.4293
        "stop_memory" => integer 4271168
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.433
        "start_memory" => integer 4412744
        "stop_time" => float 1425213056.433
        "stop_memory" => integer 4413320
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4444
        "start_memory" => integer 4466112
        "stop_time" => float 1425213056.4445
        "stop_memory" => integer 4466664
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4446
        "start_memory" => integer 4471496
        "stop_time" => float 1425213056.4447
        "stop_memory" => integer 4472072
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4515
        "start_memory" => integer 4497560
        "stop_time" => float 1425213056.4516
        "stop_memory" => integer 4498144
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4519
        "start_memory" => integer 4503096
        "stop_time" => float 1425213056.4519
        "stop_memory" => integer 4503672
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4583
        "start_memory" => integer 4529288
        "stop_time" => float 1425213056.4584
        "stop_memory" => integer 4529848
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4586
        "start_memory" => integer 4534704
        "stop_time" => float 1425213056.4587
        "stop_memory" => integer 4535784
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4596
        "start_memory" => integer 4624520
        "stop_time" => float 1425213056.4596
        "stop_memory" => integer 4625120
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4662
        "start_memory" => integer 4632040
        "stop_time" => float 1425213056.4663
        "stop_memory" => integer 4632592
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4665
        "start_memory" => integer 4637472
        "stop_time" => float 1425213056.4666
        "stop_memory" => integer 4638056
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4853
        "start_memory" => integer 4694952
        "stop_time" => float 1425213056.4854
        "stop_memory" => integer 4695512
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4856
        "start_memory" => integer 4700432
        "stop_time" => float 1425213056.4856
        "stop_memory" => integer 4701016
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4859
        "start_memory" => integer 4724832
        "stop_time" => float 1425213056.4859
        "stop_memory" => integer 4725408
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4869
        "start_memory" => integer 4734496
        "stop_time" => float 1425213056.4869
        "stop_memory" => integer 4735056
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4871
        "start_memory" => integer 4739920
        "stop_time" => float 1425213056.4871
        "stop_memory" => integer 4740504
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4888
        "start_memory" => integer 4819984
        "stop_time" => float 1425213056.4888
        "stop_memory" => integer 4820544
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4889
        "start_memory" => integer 4825424
        "stop_time" => float 1425213056.489
        "stop_memory" => integer 4826008
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4967
        "start_memory" => integer 4851704
        "stop_time" => float 1425213056.4968
        "stop_memory" => integer 4852264
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.497
        "start_memory" => integer 4857128
        "stop_time" => float 1425213056.4971
        "stop_memory" => integer 4857712
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4982
        "start_memory" => integer 4879120
        "stop_time" => float 1425213056.4983
        "stop_memory" => integer 4879648
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.4984
        "start_memory" => integer 4884296
        "stop_time" => float 1425213056.4986
        "stop_memory" => integer 4884872
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5011
        "start_memory" => integer 4895728
        "stop_time" => float 1425213056.5012
        "stop_memory" => integer 4896320
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5013
        "start_memory" => integer 4901208
        "stop_time" => float 1425213056.5014
        "stop_memory" => integer 4901784
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5056
        "start_memory" => integer 4946736
        "stop_time" => float 1425213056.5057
        "stop_memory" => integer 4947312
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5064
        "start_memory" => integer 4958456
        "stop_time" => float 1425213056.5064
        "stop_memory" => integer 4959000
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5066
        "start_memory" => integer 4963856
        "stop_time" => float 1425213056.5067
        "stop_memory" => integer 4964432
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5106
        "start_memory" => integer 4986928
        "stop_time" => float 1425213056.5107
        "stop_memory" => integer 4987496
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5128
        "start_memory" => integer 4993048
        "stop_time" => float 1425213056.5128
        "stop_memory" => integer 4993616
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.513
        "start_memory" => integer 4998464
        "stop_time" => float 1425213056.513
        "stop_memory" => integer 4999048
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5163
        "start_memory" => integer 5132792
        "stop_time" => float 1425213056.5163
        "stop_memory" => integer 5133368
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5164
        "start_memory" => integer 5138320
        "stop_time" => float 1425213056.5165
        "stop_memory" => integer 5138912
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5172
        "start_memory" => integer 5153768
        "stop_time" => float 1425213056.5173
        "stop_memory" => integer 5154336
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5174
        "start_memory" => integer 5159296
        "stop_time" => float 1425213056.5174
        "stop_memory" => integer 5159888
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5193
        "start_memory" => integer 5165824
        "stop_time" => float 1425213056.5194
        "stop_memory" => integer 5166376
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5195
        "start_memory" => integer 5171248
        "stop_time" => float 1425213056.5196
        "stop_memory" => integer 5171824
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5213
        "start_memory" => integer 5316416
        "stop_time" => float 1425213056.5214
        "stop_memory" => integer 5316992
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5216
        "start_memory" => integer 5321952
        "stop_time" => float 1425213056.5217
        "stop_memory" => integer 5322544
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5219
        "start_memory" => integer 5343224
        "stop_time" => float 1425213056.522
        "stop_memory" => integer 5343792
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5221
        "start_memory" => integer 5348680
        "stop_time" => float 1425213056.5222
        "stop_memory" => integer 5349256
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5238
        "start_memory" => integer 5411560
        "stop_time" => float 1425213056.5238
        "stop_memory" => integer 5412120
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5239
        "start_memory" => integer 5416992
        "stop_time" => float 1425213056.524
        "stop_memory" => integer 5417576
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5254
        "start_memory" => integer 5483080
        "stop_time" => float 1425213056.5254
        "stop_memory" => integer 5483640
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5255
        "start_memory" => integer 5488504
        "stop_time" => float 1425213056.5255
        "stop_memory" => integer 5489088
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.527
        "start_memory" => integer 5531744
        "stop_time" => float 1425213056.5271
        "stop_memory" => integer 5532320
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5272
        "start_memory" => integer 5537288
        "stop_time" => float 1425213056.5273
        "stop_memory" => integer 5537880
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5287
        "start_memory" => integer 5596720
        "stop_time" => float 1425213056.5288
        "stop_memory" => integer 5597304
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5289
        "start_memory" => integer 5602368
        "stop_time" => float 1425213056.529
        "stop_memory" => integer 5602968
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5293
        "start_memory" => integer 5622640
        "stop_time" => float 1425213056.5294
        "stop_memory" => integer 5623216
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5295
        "start_memory" => integer 5628280
        "stop_time" => float 1425213056.5296
        "stop_memory" => integer 5628880
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5311
        "start_memory" => integer 5693328
        "stop_time" => float 1425213056.5311
        "stop_memory" => integer 5693904
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5313
        "start_memory" => integer 5698968
        "stop_time" => float 1425213056.5313
        "stop_memory" => integer 5699568
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5326
        "start_memory" => integer 5747896
        "stop_time" => float 1425213056.5326
        "stop_memory" => integer 5748472
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5327
        "start_memory" => integer 5753528
        "stop_time" => float 1425213056.5328
        "stop_memory" => integer 5754128
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5341
        "start_memory" => integer 5795432
        "stop_time" => float 1425213056.5341
        "stop_memory" => integer 5796008
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5342
        "start_memory" => integer 5801072
        "stop_time" => float 1425213056.5343
        "stop_memory" => integer 5801672
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.536
        "start_memory" => integer 5914600
        "stop_time" => float 1425213056.536
        "stop_memory" => integer 5915176
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5361
        "start_memory" => integer 5920240
        "stop_time" => float 1425213056.5362
        "stop_memory" => integer 5920840
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.539
        "start_memory" => integer 5969480
        "stop_time" => float 1425213056.5391
        "stop_memory" => integer 5970040
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5392
        "start_memory" => integer 5975008
        "stop_time" => float 1425213056.5393
        "stop_memory" => integer 5975600
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5402
        "start_memory" => integer 5998720
        "stop_time" => float 1425213056.5403
        "stop_memory" => integer 5999240
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5404
        "start_memory" => integer 6003880
        "stop_time" => float 1425213056.5405
        "stop_memory" => integer 6004448
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5423
        "start_memory" => integer 6119120
        "stop_time" => float 1425213056.5423
        "stop_memory" => integer 6119680
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5424
        "start_memory" => integer 6124352
        "stop_time" => float 1425213056.5425
        "stop_memory" => integer 6124944
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5482
        "start_memory" => integer 6145264
        "stop_time" => float 1425213056.5483
        "stop_memory" => integer 6145800
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5485
        "start_memory" => integer 6150448
        "stop_time" => float 1425213056.5486
        "stop_memory" => integer 6151016
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5522
        "start_memory" => integer 6187696
        "stop_time" => float 1425213056.5523
        "stop_memory" => integer 6188240
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5524
        "start_memory" => integer 6192880
        "stop_time" => float 1425213056.5525
        "stop_memory" => integer 6193448
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5535
        "start_memory" => integer 6235864
        "stop_time" => float 1425213056.5536
        "stop_memory" => integer 6236408
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5537
        "start_memory" => integer 6241048
        "stop_time" => float 1425213056.5538
        "stop_memory" => integer 6241616
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5546
        "start_memory" => integer 6285832
        "stop_time" => float 1425213056.5547
        "stop_memory" => integer 6286376
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5548
        "start_memory" => integer 6291016
        "stop_time" => float 1425213056.5549
        "stop_memory" => integer 6292608
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5565
        "start_memory" => integer 6368144
        "stop_time" => float 1425213056.5565
        "stop_memory" => integer 6368688
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5566
        "start_memory" => integer 6373352
        "stop_time" => float 1425213056.5567
        "stop_memory" => integer 6373920
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5595
        "start_memory" => integer 6396104
        "stop_time" => float 1425213056.5596
        "stop_memory" => integer 6396648
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5597
        "start_memory" => integer 6401304
        "stop_time" => float 1425213056.5597
        "stop_memory" => integer 6401872
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5617
        "start_memory" => integer 6431024
        "stop_time" => float 1425213056.5617
        "stop_memory" => integer 6431584
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5618
        "start_memory" => integer 6436432
        "stop_time" => float 1425213056.5619
        "stop_memory" => integer 6437008
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5629
        "start_memory" => integer 6457296
        "stop_time" => float 1425213056.563
        "stop_memory" => integer 6457864
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5632
        "start_memory" => integer 6462800
        "stop_time" => float 1425213056.5633
        "stop_memory" => integer 6463384
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5643
        "start_memory" => integer 6478424
        "stop_time" => float 1425213056.5644
        "stop_memory" => integer 6478984
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5646
        "start_memory" => integer 6483920
        "stop_time" => float 1425213056.5646
        "stop_memory" => integer 6484504
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5656
        "start_memory" => integer 6499544
        "stop_time" => float 1425213056.5657
        "stop_memory" => integer 6500104
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5658
        "start_memory" => integer 6505040
        "stop_time" => float 1425213056.5659
        "stop_memory" => integer 6505624
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.567
        "start_memory" => integer 6520672
        "stop_time" => float 1425213056.5671
        "stop_memory" => integer 6521232
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5672
        "start_memory" => integer 6526168
        "stop_time" => float 1425213056.5673
        "stop_memory" => integer 6526752
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5683
        "start_memory" => integer 6541776
        "stop_time" => float 1425213056.5684
        "stop_memory" => integer 6542336
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5686
        "start_memory" => integer 6547272
        "stop_time" => float 1425213056.5686
        "stop_memory" => integer 6547856
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5698
        "start_memory" => integer 6562880
        "stop_time" => float 1425213056.5699
        "stop_memory" => integer 6563440
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.57
        "start_memory" => integer 6568376
        "stop_time" => float 1425213056.57
        "stop_memory" => integer 6568960
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5708
        "start_memory" => integer 6584016
        "stop_time" => float 1425213056.5709
        "stop_memory" => integer 6584576
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5711
        "start_memory" => integer 6589512
        "stop_time" => float 1425213056.5711
        "stop_memory" => integer 6590096
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.572
        "start_memory" => integer 6605120
        "stop_time" => float 1425213056.572
        "stop_memory" => integer 6605680
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5721
        "start_memory" => integer 6610616
        "stop_time" => float 1425213056.5722
        "stop_memory" => integer 6611200
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5729
        "start_memory" => integer 6626336
        "stop_time" => float 1425213056.573
        "stop_memory" => integer 6626896
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5732
        "start_memory" => integer 6631832
        "stop_time" => float 1425213056.5733
        "stop_memory" => integer 6632416
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5741
        "start_memory" => integer 6647448
        "stop_time" => float 1425213056.5742
        "stop_memory" => integer 6648008
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5743
        "start_memory" => integer 6652944
        "stop_time" => float 1425213056.5743
        "stop_memory" => integer 6653528
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5754
        "start_memory" => integer 6668568
        "stop_time" => float 1425213056.5755
        "stop_memory" => integer 6669128
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5756
        "start_memory" => integer 6674064
        "stop_time" => float 1425213056.5757
        "stop_memory" => integer 6674648
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5767
        "start_memory" => integer 6689656
        "stop_time" => float 1425213056.5768
        "stop_memory" => integer 6690216
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.577
        "start_memory" => integer 6695152
        "stop_time" => float 1425213056.577
        "stop_memory" => integer 6695736
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5781
        "start_memory" => integer 6710760
        "stop_time" => float 1425213056.5781
        "stop_memory" => integer 6711320
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5783
        "start_memory" => integer 6716256
        "stop_time" => float 1425213056.5783
        "stop_memory" => integer 6716840
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5791
        "start_memory" => integer 6731880
        "stop_time" => float 1425213056.5791
        "stop_memory" => integer 6732440
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5792
        "start_memory" => integer 6737376
        "stop_time" => float 1425213056.5792
        "stop_memory" => integer 6737960
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.58
        "start_memory" => integer 6753016
        "stop_time" => float 1425213056.5801
        "stop_memory" => integer 6753576
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5801
        "start_memory" => integer 6758512
        "stop_time" => float 1425213056.5803
        "stop_memory" => integer 6759096
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5812
        "start_memory" => integer 6774144
        "stop_time" => float 1425213056.5812
        "stop_memory" => integer 6774704
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5813
        "start_memory" => integer 6779640
        "stop_time" => float 1425213056.5814
        "stop_memory" => integer 6780224
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5822
        "start_memory" => integer 6795408
        "stop_time" => float 1425213056.5823
        "stop_memory" => integer 6795968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5824
        "start_memory" => integer 6800904
        "stop_time" => float 1425213056.5825
        "stop_memory" => integer 6801488
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5832
        "start_memory" => integer 6816560
        "stop_time" => float 1425213056.5833
        "stop_memory" => integer 6817120
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5834
        "start_memory" => integer 6822056
        "stop_time" => float 1425213056.5835
        "stop_memory" => integer 6822640
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5842
        "start_memory" => integer 6837696
        "stop_time" => float 1425213056.5842
        "stop_memory" => integer 6838256
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5843
        "start_memory" => integer 6843192
        "stop_time" => float 1425213056.5844
        "stop_memory" => integer 6843776
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5851
        "start_memory" => integer 6858824
        "stop_time" => float 1425213056.5852
        "stop_memory" => integer 6859384
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5852
        "start_memory" => integer 6864320
        "stop_time" => float 1425213056.5853
        "stop_memory" => integer 6864904
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5863
        "start_memory" => integer 6879928
        "stop_time" => float 1425213056.5863
        "stop_memory" => integer 6880488
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5864
        "start_memory" => integer 6885424
        "stop_time" => float 1425213056.5865
        "stop_memory" => integer 6886008
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5872
        "start_memory" => integer 6901032
        "stop_time" => float 1425213056.5873
        "stop_memory" => integer 6901592
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5873
        "start_memory" => integer 6906528
        "stop_time" => float 1425213056.5874
        "stop_memory" => integer 6907112
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5881
        "start_memory" => integer 6922168
        "stop_time" => float 1425213056.5882
        "stop_memory" => integer 6922728
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5883
        "start_memory" => integer 6927664
        "stop_time" => float 1425213056.5884
        "stop_memory" => integer 6928248
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5891
        "start_memory" => integer 6943288
        "stop_time" => float 1425213056.5891
        "stop_memory" => integer 6943848
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5892
        "start_memory" => integer 6948784
        "stop_time" => float 1425213056.5893
        "stop_memory" => integer 6949368
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5914
        "start_memory" => integer 6964632
        "stop_time" => float 1425213056.5915
        "stop_memory" => integer 6965192
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5916
        "start_memory" => integer 6970104
        "stop_time" => float 1425213056.5917
        "stop_memory" => integer 6970672
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5948
        "start_memory" => integer 7008720
        "stop_time" => float 1425213056.5949
        "stop_memory" => integer 7009272
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.595
        "start_memory" => integer 7013968
        "stop_time" => float 1425213056.595
        "stop_memory" => integer 7014528
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5969
        "start_memory" => integer 7145608
        "stop_time" => float 1425213056.5969
        "stop_memory" => integer 7146160
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.597
        "start_memory" => integer 7150840
        "stop_time" => float 1425213056.597
        "stop_memory" => integer 7151416
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5993
        "start_memory" => integer 7320584
        "stop_time" => float 1425213056.5993
        "stop_memory" => integer 7321136
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.5995
        "start_memory" => integer 7325824
        "stop_time" => float 1425213056.5995
        "stop_memory" => integer 7326384
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.603
        "start_memory" => integer 7382048
        "stop_time" => float 1425213056.6031
        "stop_memory" => integer 7382624
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6033
        "start_memory" => integer 7387536
        "stop_time" => float 1425213056.6034
        "stop_memory" => integer 7388104
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6046
        "start_memory" => integer 7428136
        "stop_time" => float 1425213056.6047
        "stop_memory" => integer 7428712
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6048
        "start_memory" => integer 7433664
        "stop_time" => float 1425213056.6049
        "stop_memory" => integer 7434256
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6068
        "start_memory" => integer 7460200
        "stop_time" => float 1425213056.6068
        "stop_memory" => integer 7460768
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.607
        "start_memory" => integer 7465640
        "stop_time" => float 1425213056.607
        "stop_memory" => integer 7466216
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6104
        "start_memory" => integer 7492272
        "stop_time" => float 1425213056.6105
        "stop_memory" => integer 7492848
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6153
        "start_memory" => integer 7503752
        "stop_time" => float 1425213056.6154
        "stop_memory" => integer 7504312
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6157
        "start_memory" => integer 7514176
        "stop_time" => float 1425213056.6158
        "stop_memory" => integer 7514744
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6184
        "start_memory" => integer 7525368
        "stop_time" => float 1425213056.6185
        "stop_memory" => integer 7525920
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6186
        "start_memory" => integer 7530640
        "stop_time" => float 1425213056.6187
        "stop_memory" => integer 7531216
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6197
        "start_memory" => integer 7536680
        "stop_time" => float 1425213056.6198
        "stop_memory" => integer 7537232
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6199
        "start_memory" => integer 7541960
        "stop_time" => float 1425213056.62
        "stop_memory" => integer 7542536
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6207
        "start_memory" => integer 7547984
        "stop_time" => float 1425213056.6207
        "stop_memory" => integer 7548536
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6208
        "start_memory" => integer 7553280
        "stop_time" => float 1425213056.6209
        "stop_memory" => integer 7553856
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6222
        "start_memory" => integer 7565856
        "stop_time" => float 1425213056.6223
        "stop_memory" => integer 7566408
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6224
        "start_memory" => integer 7571056
        "stop_time" => float 1425213056.6224
        "stop_memory" => integer 7571624
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6232
        "start_memory" => integer 7574688
        "stop_time" => float 1425213056.6233
        "stop_memory" => integer 7575264
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6235
        "start_memory" => integer 7584528
        "stop_time" => float 1425213056.6235
        "stop_memory" => integer 7585064
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6236
        "start_memory" => integer 7589712
        "stop_time" => float 1425213056.6237
        "stop_memory" => integer 7590280
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6269
        "start_memory" => integer 7965688
        "stop_time" => float 1425213056.627
        "stop_memory" => integer 7966264
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.628
        "start_memory" => integer 8044832
        "stop_time" => float 1425213056.628
        "stop_memory" => integer 8045416
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6287
        "start_memory" => integer 8090640
        "stop_time" => float 1425213056.6287
        "stop_memory" => integer 8091200
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6289
        "start_memory" => integer 8096064
        "stop_time" => float 1425213056.629
        "stop_memory" => integer 8096648
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6298
        "start_memory" => integer 8105632
        "stop_time" => float 1425213056.6299
        "stop_memory" => integer 8106176
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6306
        "start_memory" => integer 8137640
        "stop_time" => float 1425213056.6306
        "stop_memory" => integer 8138200
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6316
        "start_memory" => integer 8172608
        "stop_time" => float 1425213056.6317
        "stop_memory" => integer 8173184
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6324
        "start_memory" => integer 8205296
        "stop_time" => float 1425213056.6325
        "stop_memory" => integer 8205832
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6326
        "start_memory" => integer 8210488
        "stop_time" => float 1425213056.6326
        "stop_memory" => integer 8211056
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6361
        "start_memory" => integer 8252864
        "stop_time" => float 1425213056.6362
        "stop_memory" => integer 8253456
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6364
        "start_memory" => integer 8258640
        "stop_time" => float 1425213056.6364
        "stop_memory" => integer 8259232
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6409
        "start_memory" => integer 8303344
        "stop_time" => float 1425213056.641
        "stop_memory" => integer 8303896
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6412
        "start_memory" => integer 8308832
        "stop_time" => float 1425213056.6413
        "stop_memory" => integer 8309416
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6458
        "start_memory" => integer 8411104
        "stop_time" => float 1425213056.6459
        "stop_memory" => integer 8411632
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.646
        "start_memory" => integer 8416288
        "stop_time" => float 1425213056.6461
        "stop_memory" => integer 8416856
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6468
        "start_memory" => integer 8431784
        "stop_time" => float 1425213056.6469
        "stop_memory" => integer 8432336
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6471
        "start_memory" => integer 8436984
        "stop_time" => float 1425213056.6472
        "stop_memory" => integer 8437552
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6482
        "start_memory" => integer 8503984
        "stop_time" => float 1425213056.6483
        "stop_memory" => integer 8504544
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6484
        "start_memory" => integer 8509400
        "stop_time" => float 1425213056.6485
        "stop_memory" => integer 8509976
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6492
        "start_memory" => integer 8533416
        "stop_time" => float 1425213056.6493
        "stop_memory" => integer 8534024
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6493
        "start_memory" => integer 8538944
        "stop_time" => float 1425213056.6494
        "stop_memory" => integer 8539536
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6509
        "start_memory" => integer 8610528
        "stop_time" => float 1425213056.651
        "stop_memory" => integer 8611064
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6512
        "start_memory" => integer 8615936
        "stop_time" => float 1425213056.6512
        "stop_memory" => integer 8616488
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6519
        "start_memory" => integer 8644224
        "stop_time" => float 1425213056.652
        "stop_memory" => integer 8644760
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6521
        "start_memory" => integer 8649416
        "stop_time" => float 1425213056.6522
        "stop_memory" => integer 8649984
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6536
        "start_memory" => integer 8771208
        "stop_time" => float 1425213056.6537
        "stop_memory" => integer 8771752
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6538
        "start_memory" => integer 8776424
        "stop_time" => float 1425213056.6539
        "stop_memory" => integer 8776992
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6596
        "start_memory" => integer 8808376
        "stop_time" => float 1425213056.6597
        "stop_memory" => integer 8808920
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6598
        "start_memory" => integer 8813568
        "stop_time" => float 1425213056.6598
        "stop_memory" => integer 8814136
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6609
        "start_memory" => integer 8914432
        "stop_time" => float 1425213056.661
        "stop_memory" => integer 8914992
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6611
        "start_memory" => integer 8919704
        "stop_time" => float 1425213056.6611
        "stop_memory" => integer 8920280
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6624
        "start_memory" => integer 9028024
        "stop_time" => float 1425213056.6625
        "stop_memory" => integer 9028592
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6625
        "start_memory" => integer 9033512
        "stop_time" => float 1425213056.6626
        "stop_memory" => integer 9034096
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6637
        "start_memory" => integer 9055280
        "stop_time" => float 1425213056.6638
        "stop_memory" => integer 9055856
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6641
        "start_memory" => integer 9020360
        "stop_time" => float 1425213056.6642
        "stop_memory" => integer 9022296
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.6649
        "start_memory" => integer 9093016
        "stop_time" => float 1425213056.665
        "stop_memory" => integer 9094744
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1425213056.665
        "start_memory" => integer 9094504
        "stop_time" => float 1425213056.6651
        "stop_memory" => integer 9096232
    )
)

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