Modules

Profiler
extends Kohana_Profiler

Provides simple benchmarking and profiling. To display the statistics that have been collected, load the profiler/stats View:

echo View::factory('profiler/stats');
package
Kohana
category
Helpers
author
Kohana Team
copyright
© 2009-2012 Kohana Team
license
http://kohanaframework.org/license

Class declared in SYSPATH/classes/profiler.php on line 3.

Properties

public static integer $rollover

maximium number of application stats to keep

integer 1000

protected static array $_marks

collected benchmarks

array(249) (
    "kp/0" => array(6) (
        "group" => string(8) "requests"
        "name" => string(20) ""guide/api/Profiler""
        "start_time" => float 1406232092.1337
        "start_memory" => integer 1984664
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1337
        "start_memory" => integer 1987008
        "stop_time" => float 1406232092.1338
        "stop_memory" => integer 1987600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1339
        "start_memory" => integer 1992552
        "stop_time" => float 1406232092.1339
        "stop_memory" => integer 1993144
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1349
        "start_memory" => integer 2118664
        "stop_time" => float 1406232092.135
        "stop_memory" => integer 2119216
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1351
        "start_memory" => integer 2124136
        "stop_time" => float 1406232092.1352
        "stop_memory" => integer 2124720
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1354
        "start_memory" => integer 2135808
        "stop_time" => float 1406232092.1355
        "stop_memory" => integer 2136352
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1356
        "start_memory" => integer 2141064
        "stop_time" => float 1406232092.1357
        "stop_memory" => integer 2141640
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.136
        "start_memory" => integer 2150920
        "stop_time" => float 1406232092.1361
        "stop_memory" => integer 2151456
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1362
        "start_memory" => integer 2156128
        "stop_time" => float 1406232092.1362
        "stop_memory" => integer 2156760
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1376
        "start_memory" => integer 2317688
        "stop_time" => float 1406232092.1377
        "stop_memory" => integer 2318248
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1378
        "start_memory" => integer 2323096
        "stop_time" => float 1406232092.1379
        "stop_memory" => integer 2323672
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1382
        "start_memory" => integer 2337128
        "stop_time" => float 1406232092.1383
        "stop_memory" => integer 2337672
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1384
        "start_memory" => integer 2342320
        "stop_time" => float 1406232092.1385
        "stop_memory" => integer 2342888
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1389
        "start_memory" => integer 2397720
        "stop_time" => float 1406232092.139
        "stop_memory" => integer 2398312
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.139
        "start_memory" => integer 2399472
        "stop_time" => float 1406232092.1391
        "stop_memory" => integer 2400048
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1393
        "start_memory" => integer 2404920
        "stop_time" => float 1406232092.1393
        "stop_memory" => integer 2405496
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1398
        "start_memory" => integer 2470936
        "stop_time" => float 1406232092.1399
        "stop_memory" => integer 2471552
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1399
        "start_memory" => integer 2472336
        "stop_time" => float 1406232092.14
        "stop_memory" => integer 2472912
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.145
        "start_memory" => integer 3141592
        "stop_time" => float 1406232092.1451
        "stop_memory" => integer 3142120
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1453
        "start_memory" => integer 3147816
        "stop_time" => float 1406232092.1454
        "stop_memory" => integer 3148384
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1458
        "start_memory" => integer 3181104
        "stop_time" => float 1406232092.1459
        "stop_memory" => integer 3181648
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1461
        "start_memory" => integer 3186288
        "stop_time" => float 1406232092.1461
        "stop_memory" => integer 3186856
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1475
        "start_memory" => integer 3349728
        "stop_time" => float 1406232092.1476
        "stop_memory" => integer 3350304
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1477
        "start_memory" => integer 3355184
        "stop_time" => float 1406232092.1478
        "stop_memory" => integer 3355768
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1481
        "start_memory" => integer 3358456
        "stop_time" => float 1406232092.1481
        "stop_memory" => integer 3359016
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1483
        "start_memory" => integer 3363888
        "stop_time" => float 1406232092.1484
        "stop_memory" => integer 3364472
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1488
        "start_memory" => integer 3414128
        "stop_time" => float 1406232092.1489
        "stop_memory" => integer 3414672
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.149
        "start_memory" => integer 3419344
        "stop_time" => float 1406232092.149
        "stop_memory" => integer 3419920
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.15
        "start_memory" => integer 3517960
        "stop_time" => float 1406232092.1501
        "stop_memory" => integer 3518496
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1502
        "start_memory" => integer 3523136
        "stop_time" => float 1406232092.1502
        "stop_memory" => integer 3523704
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.1537
        "start_memory" => integer 3610296
        "stop_time" => float 1406232092.1538
        "stop_memory" => integer 3610888
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2412
        "start_memory" => integer 3653040
        "stop_time" => float 1406232092.2412
        "stop_memory" => integer 3653608
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2414
        "start_memory" => integer 3658272
        "stop_time" => float 1406232092.2415
        "stop_memory" => integer 3659104
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2429
        "start_memory" => integer 3699720
        "stop_time" => float 1406232092.2429
        "stop_memory" => integer 3700272
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.243
        "start_memory" => integer 3705104
        "stop_time" => float 1406232092.2431
        "stop_memory" => integer 3705680
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2441
        "start_memory" => integer 3729384
        "stop_time" => float 1406232092.2442
        "stop_memory" => integer 3729936
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2443
        "start_memory" => integer 3734632
        "stop_time" => float 1406232092.2443
        "stop_memory" => integer 3735208
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2457
        "start_memory" => integer 3802360
        "stop_time" => float 1406232092.2457
        "stop_memory" => integer 3802944
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2459
        "start_memory" => integer 3820952
        "stop_time" => float 1406232092.246
        "stop_memory" => integer 3821512
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2461
        "start_memory" => integer 3826376
        "stop_time" => float 1406232092.2461
        "stop_memory" => integer 3826960
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2474
        "start_memory" => integer 3892096
        "stop_time" => float 1406232092.2475
        "stop_memory" => integer 3892672
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2479
        "start_memory" => integer 3912080
        "stop_time" => float 1406232092.248
        "stop_memory" => integer 3912656
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2487
        "start_memory" => integer 3960720
        "stop_time" => float 1406232092.2487
        "stop_memory" => integer 3961296
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.249
        "start_memory" => integer 3971952
        "stop_time" => float 1406232092.2491
        "stop_memory" => integer 3972528
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2494
        "start_memory" => integer 3990536
        "stop_time" => float 1406232092.2495
        "stop_memory" => integer 3991112
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2498
        "start_memory" => integer 4000784
        "stop_time" => float 1406232092.2499
        "stop_memory" => integer 4001360
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2503
        "start_memory" => integer 4021464
        "stop_time" => float 1406232092.2503
        "stop_memory" => integer 4022040
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2507
        "start_memory" => integer 4042544
        "stop_time" => float 1406232092.2507
        "stop_memory" => integer 4043136
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2511
        "start_memory" => integer 4056360
        "stop_time" => float 1406232092.2511
        "stop_memory" => integer 4056928
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2514
        "start_memory" => integer 4069136
        "stop_time" => float 1406232092.2515
        "stop_memory" => integer 4069712
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2519
        "start_memory" => integer 4117984
        "stop_time" => float 1406232092.252
        "stop_memory" => integer 4118544
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2525
        "start_memory" => integer 4157016
        "stop_time" => float 1406232092.2525
        "stop_memory" => integer 4157600
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.253
        "start_memory" => integer 4177000
        "stop_time" => float 1406232092.253
        "stop_memory" => integer 4177576
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2534
        "start_memory" => integer 4208736
        "stop_time" => float 1406232092.2534
        "stop_memory" => integer 4209312
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2539
        "start_memory" => integer 4228024
        "stop_time" => float 1406232092.2539
        "stop_memory" => integer 4228568
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.254
        "start_memory" => integer 4233240
        "stop_time" => float 1406232092.254
        "stop_memory" => integer 4233816
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2543
        "start_memory" => integer 4264664
        "stop_time" => float 1406232092.2545
        "stop_memory" => integer 4265200
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2546
        "start_memory" => integer 4269848
        "stop_time" => float 1406232092.2546
        "stop_memory" => integer 4270416
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2584
        "start_memory" => integer 4411984
        "stop_time" => float 1406232092.2585
        "stop_memory" => integer 4412560
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2706
        "start_memory" => integer 4465360
        "stop_time" => float 1406232092.2707
        "stop_memory" => integer 4465912
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2709
        "start_memory" => integer 4470744
        "stop_time" => float 1406232092.2709
        "stop_memory" => integer 4471320
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.277
        "start_memory" => integer 4496784
        "stop_time" => float 1406232092.277
        "stop_memory" => integer 4497368
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2772
        "start_memory" => integer 4502304
        "stop_time" => float 1406232092.2772
        "stop_memory" => integer 4502880
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2839
        "start_memory" => integer 4528488
        "stop_time" => float 1406232092.284
        "stop_memory" => integer 4529048
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2842
        "start_memory" => integer 4533904
        "stop_time" => float 1406232092.2842
        "stop_memory" => integer 4534984
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.285
        "start_memory" => integer 4623688
        "stop_time" => float 1406232092.2851
        "stop_memory" => integer 4624288
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2935
        "start_memory" => integer 4631208
        "stop_time" => float 1406232092.2935
        "stop_memory" => integer 4631760
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.2937
        "start_memory" => integer 4636640
        "stop_time" => float 1406232092.2938
        "stop_memory" => integer 4637224
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3172
        "start_memory" => integer 4694136
        "stop_time" => float 1406232092.3172
        "stop_memory" => integer 4694696
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3174
        "start_memory" => integer 4699616
        "stop_time" => float 1406232092.3174
        "stop_memory" => integer 4700200
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3177
        "start_memory" => integer 4724064
        "stop_time" => float 1406232092.3177
        "stop_memory" => integer 4724640
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3188
        "start_memory" => integer 4733704
        "stop_time" => float 1406232092.3188
        "stop_memory" => integer 4734264
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.319
        "start_memory" => integer 4739128
        "stop_time" => float 1406232092.319
        "stop_memory" => integer 4739712
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3206
        "start_memory" => integer 4819176
        "stop_time" => float 1406232092.3206
        "stop_memory" => integer 4819736
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3208
        "start_memory" => integer 4824616
        "stop_time" => float 1406232092.3208
        "stop_memory" => integer 4825224
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3294
        "start_memory" => integer 4850920
        "stop_time" => float 1406232092.3295
        "stop_memory" => integer 4851480
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3297
        "start_memory" => integer 4856344
        "stop_time" => float 1406232092.3297
        "stop_memory" => integer 4856928
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3311
        "start_memory" => integer 4878280
        "stop_time" => float 1406232092.3312
        "stop_memory" => integer 4878808
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3313
        "start_memory" => integer 4883456
        "stop_time" => float 1406232092.3314
        "stop_memory" => integer 4884024
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3342
        "start_memory" => integer 4894880
        "stop_time" => float 1406232092.3343
        "stop_memory" => integer 4895472
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3345
        "start_memory" => integer 4900360
        "stop_time" => float 1406232092.3346
        "stop_memory" => integer 4900936
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3403
        "start_memory" => integer 4945904
        "stop_time" => float 1406232092.3404
        "stop_memory" => integer 4946480
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3413
        "start_memory" => integer 4957632
        "stop_time" => float 1406232092.3414
        "stop_memory" => integer 4958176
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3416
        "start_memory" => integer 4964072
        "stop_time" => float 1406232092.3417
        "stop_memory" => integer 4964648
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.347
        "start_memory" => integer 4986104
        "stop_time" => float 1406232092.3471
        "stop_memory" => integer 4986672
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3503
        "start_memory" => integer 4992224
        "stop_time" => float 1406232092.3504
        "stop_memory" => integer 4992792
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3505
        "start_memory" => integer 4997640
        "stop_time" => float 1406232092.3506
        "stop_memory" => integer 4998224
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3546
        "start_memory" => integer 5132008
        "stop_time" => float 1406232092.3547
        "stop_memory" => integer 5132584
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3549
        "start_memory" => integer 5137536
        "stop_time" => float 1406232092.3549
        "stop_memory" => integer 5138128
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3559
        "start_memory" => integer 5152992
        "stop_time" => float 1406232092.3559
        "stop_memory" => integer 5153560
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.356
        "start_memory" => integer 5158520
        "stop_time" => float 1406232092.3561
        "stop_memory" => integer 5159112
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3583
        "start_memory" => integer 5165048
        "stop_time" => float 1406232092.3584
        "stop_memory" => integer 5165600
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3587
        "start_memory" => integer 5170472
        "stop_time" => float 1406232092.3587
        "stop_memory" => integer 5171048
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3607
        "start_memory" => integer 5315656
        "stop_time" => float 1406232092.3608
        "stop_memory" => integer 5316232
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3609
        "start_memory" => integer 5321192
        "stop_time" => float 1406232092.3609
        "stop_memory" => integer 5321784
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3612
        "start_memory" => integer 5342464
        "stop_time" => float 1406232092.3612
        "stop_memory" => integer 5343032
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3613
        "start_memory" => integer 5347920
        "stop_time" => float 1406232092.3614
        "stop_memory" => integer 5348496
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3631
        "start_memory" => integer 5410768
        "stop_time" => float 1406232092.3631
        "stop_memory" => integer 5411328
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3633
        "start_memory" => integer 5416200
        "stop_time" => float 1406232092.3633
        "stop_memory" => integer 5416784
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3648
        "start_memory" => integer 5482288
        "stop_time" => float 1406232092.3648
        "stop_memory" => integer 5482848
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3649
        "start_memory" => integer 5487712
        "stop_time" => float 1406232092.365
        "stop_memory" => integer 5488296
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3665
        "start_memory" => integer 5530952
        "stop_time" => float 1406232092.3665
        "stop_memory" => integer 5531528
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3667
        "start_memory" => integer 5536496
        "stop_time" => float 1406232092.3667
        "stop_memory" => integer 5537088
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3684
        "start_memory" => integer 5595928
        "stop_time" => float 1406232092.3685
        "stop_memory" => integer 5596512
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3686
        "start_memory" => integer 5601576
        "stop_time" => float 1406232092.3687
        "stop_memory" => integer 5602176
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.369
        "start_memory" => integer 5621848
        "stop_time" => float 1406232092.3691
        "stop_memory" => integer 5622424
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3692
        "start_memory" => integer 5627488
        "stop_time" => float 1406232092.3692
        "stop_memory" => integer 5628088
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3708
        "start_memory" => integer 5692568
        "stop_time" => float 1406232092.3708
        "stop_memory" => integer 5693144
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.371
        "start_memory" => integer 5698208
        "stop_time" => float 1406232092.3711
        "stop_memory" => integer 5698808
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3726
        "start_memory" => integer 5747136
        "stop_time" => float 1406232092.3726
        "stop_memory" => integer 5747712
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3728
        "start_memory" => integer 5752768
        "stop_time" => float 1406232092.3728
        "stop_memory" => integer 5753368
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3742
        "start_memory" => integer 5794672
        "stop_time" => float 1406232092.3743
        "stop_memory" => integer 5795248
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3744
        "start_memory" => integer 5800312
        "stop_time" => float 1406232092.3744
        "stop_memory" => integer 5800912
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3764
        "start_memory" => integer 5913840
        "stop_time" => float 1406232092.3764
        "stop_memory" => integer 5914416
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3765
        "start_memory" => integer 5919480
        "stop_time" => float 1406232092.3766
        "stop_memory" => integer 5920080
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3799
        "start_memory" => integer 5968736
        "stop_time" => float 1406232092.38
        "stop_memory" => integer 5969296
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3801
        "start_memory" => integer 5974264
        "stop_time" => float 1406232092.3802
        "stop_memory" => integer 5974856
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3815
        "start_memory" => integer 5997976
        "stop_time" => float 1406232092.3816
        "stop_memory" => integer 5998496
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3819
        "start_memory" => integer 6003136
        "stop_time" => float 1406232092.382
        "stop_memory" => integer 6003704
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3831
        "start_memory" => integer 6121336
        "stop_time" => float 1406232092.3832
        "stop_memory" => integer 6121880
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3842
        "start_memory" => integer 6122936
        "stop_time" => float 1406232092.3843
        "stop_memory" => integer 6123504
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3844
        "start_memory" => integer 6128176
        "stop_time" => float 1406232092.3844
        "stop_memory" => integer 6128760
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3917
        "start_memory" => integer 6149080
        "stop_time" => float 1406232092.3918
        "stop_memory" => integer 6149616
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.392
        "start_memory" => integer 6154264
        "stop_time" => float 1406232092.3921
        "stop_memory" => integer 6154832
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3964
        "start_memory" => integer 6192288
        "stop_time" => float 1406232092.3965
        "stop_memory" => integer 6192832
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3968
        "start_memory" => integer 6197472
        "stop_time" => float 1406232092.3968
        "stop_memory" => integer 6198040
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.398
        "start_memory" => integer 6240528
        "stop_time" => float 1406232092.3981
        "stop_memory" => integer 6241072
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3982
        "start_memory" => integer 6245712
        "stop_time" => float 1406232092.3983
        "stop_memory" => integer 6246280
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3995
        "start_memory" => integer 6290480
        "stop_time" => float 1406232092.3996
        "stop_memory" => integer 6292048
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.3997
        "start_memory" => integer 6296688
        "stop_time" => float 1406232092.3998
        "stop_memory" => integer 6297256
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4017
        "start_memory" => integer 6372768
        "stop_time" => float 1406232092.4018
        "stop_memory" => integer 6373312
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.402
        "start_memory" => integer 6377984
        "stop_time" => float 1406232092.402
        "stop_memory" => integer 6378552
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4053
        "start_memory" => integer 6400736
        "stop_time" => float 1406232092.4054
        "stop_memory" => integer 6401296
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4055
        "start_memory" => integer 6405936
        "stop_time" => float 1406232092.4056
        "stop_memory" => integer 6406504
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4079
        "start_memory" => integer 6435984
        "stop_time" => float 1406232092.408
        "stop_memory" => integer 6436552
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4081
        "start_memory" => integer 6441400
        "stop_time" => float 1406232092.4082
        "stop_memory" => integer 6441976
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4093
        "start_memory" => integer 6462280
        "stop_time" => float 1406232092.4093
        "stop_memory" => integer 6462848
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4096
        "start_memory" => integer 6467784
        "stop_time" => float 1406232092.4096
        "stop_memory" => integer 6468368
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4106
        "start_memory" => integer 6483392
        "stop_time" => float 1406232092.4107
        "stop_memory" => integer 6483952
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4108
        "start_memory" => integer 6488888
        "stop_time" => float 1406232092.4109
        "stop_memory" => integer 6489472
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4119
        "start_memory" => integer 6504512
        "stop_time" => float 1406232092.4119
        "stop_memory" => integer 6505072
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4121
        "start_memory" => integer 6510008
        "stop_time" => float 1406232092.4121
        "stop_memory" => integer 6510592
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4131
        "start_memory" => integer 6525640
        "stop_time" => float 1406232092.4132
        "stop_memory" => integer 6526200
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4133
        "start_memory" => integer 6531136
        "stop_time" => float 1406232092.4134
        "stop_memory" => integer 6531720
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4143
        "start_memory" => integer 6546744
        "stop_time" => float 1406232092.4144
        "stop_memory" => integer 6547304
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4145
        "start_memory" => integer 6552240
        "stop_time" => float 1406232092.4146
        "stop_memory" => integer 6552824
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4155
        "start_memory" => integer 6567848
        "stop_time" => float 1406232092.4156
        "stop_memory" => integer 6568408
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4158
        "start_memory" => integer 6573344
        "stop_time" => float 1406232092.4158
        "stop_memory" => integer 6573928
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4167
        "start_memory" => integer 6588984
        "stop_time" => float 1406232092.4168
        "stop_memory" => integer 6589544
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.417
        "start_memory" => integer 6594480
        "stop_time" => float 1406232092.4171
        "stop_memory" => integer 6595064
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.418
        "start_memory" => integer 6610088
        "stop_time" => float 1406232092.4181
        "stop_memory" => integer 6610648
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4182
        "start_memory" => integer 6615584
        "stop_time" => float 1406232092.4183
        "stop_memory" => integer 6616168
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4192
        "start_memory" => integer 6631304
        "stop_time" => float 1406232092.4193
        "stop_memory" => integer 6631864
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4194
        "start_memory" => integer 6636800
        "stop_time" => float 1406232092.4194
        "stop_memory" => integer 6637384
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4204
        "start_memory" => integer 6652416
        "stop_time" => float 1406232092.4205
        "stop_memory" => integer 6652976
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4206
        "start_memory" => integer 6657912
        "stop_time" => float 1406232092.4207
        "stop_memory" => integer 6658496
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4217
        "start_memory" => integer 6673536
        "stop_time" => float 1406232092.4218
        "stop_memory" => integer 6674096
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4219
        "start_memory" => integer 6679032
        "stop_time" => float 1406232092.422
        "stop_memory" => integer 6679616
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4229
        "start_memory" => integer 6694624
        "stop_time" => float 1406232092.423
        "stop_memory" => integer 6695184
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4231
        "start_memory" => integer 6700120
        "stop_time" => float 1406232092.4232
        "stop_memory" => integer 6700704
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4242
        "start_memory" => integer 6715728
        "stop_time" => float 1406232092.4243
        "stop_memory" => integer 6716288
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4245
        "start_memory" => integer 6721224
        "stop_time" => float 1406232092.4246
        "stop_memory" => integer 6721808
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4255
        "start_memory" => integer 6736848
        "stop_time" => float 1406232092.4256
        "stop_memory" => integer 6737408
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4258
        "start_memory" => integer 6742344
        "stop_time" => float 1406232092.4258
        "stop_memory" => integer 6742928
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4266
        "start_memory" => integer 6757984
        "stop_time" => float 1406232092.4267
        "stop_memory" => integer 6758544
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4268
        "start_memory" => integer 6763480
        "stop_time" => float 1406232092.4269
        "stop_memory" => integer 6764064
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4279
        "start_memory" => integer 6779112
        "stop_time" => float 1406232092.428
        "stop_memory" => integer 6779672
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4281
        "start_memory" => integer 6784608
        "stop_time" => float 1406232092.4282
        "stop_memory" => integer 6785192
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4291
        "start_memory" => integer 6800376
        "stop_time" => float 1406232092.4292
        "stop_memory" => integer 6800936
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4293
        "start_memory" => integer 6805872
        "stop_time" => float 1406232092.4294
        "stop_memory" => integer 6806456
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4303
        "start_memory" => integer 6821528
        "stop_time" => float 1406232092.4304
        "stop_memory" => integer 6822088
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4305
        "start_memory" => integer 6827024
        "stop_time" => float 1406232092.4305
        "stop_memory" => integer 6827608
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4314
        "start_memory" => integer 6842664
        "stop_time" => float 1406232092.4315
        "stop_memory" => integer 6843224
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4316
        "start_memory" => integer 6848160
        "stop_time" => float 1406232092.4317
        "stop_memory" => integer 6848744
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4326
        "start_memory" => integer 6863792
        "stop_time" => float 1406232092.4326
        "stop_memory" => integer 6864352
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4328
        "start_memory" => integer 6869288
        "stop_time" => float 1406232092.4329
        "stop_memory" => integer 6869872
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4338
        "start_memory" => integer 6884896
        "stop_time" => float 1406232092.4338
        "stop_memory" => integer 6885456
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.434
        "start_memory" => integer 6890392
        "stop_time" => float 1406232092.434
        "stop_memory" => integer 6890976
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4351
        "start_memory" => integer 6906000
        "stop_time" => float 1406232092.4352
        "stop_memory" => integer 6906560
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4353
        "start_memory" => integer 6911496
        "stop_time" => float 1406232092.4354
        "stop_memory" => integer 6912080
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4363
        "start_memory" => integer 6927136
        "stop_time" => float 1406232092.4363
        "stop_memory" => integer 6927696
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4365
        "start_memory" => integer 6932632
        "stop_time" => float 1406232092.4365
        "stop_memory" => integer 6933216
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4375
        "start_memory" => integer 6948256
        "stop_time" => float 1406232092.4376
        "stop_memory" => integer 6948816
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4376
        "start_memory" => integer 6953752
        "stop_time" => float 1406232092.4377
        "stop_memory" => integer 6954336
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4401
        "start_memory" => integer 6969600
        "stop_time" => float 1406232092.4401
        "stop_memory" => integer 6970160
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4403
        "start_memory" => integer 6975072
        "stop_time" => float 1406232092.4403
        "stop_memory" => integer 6975640
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4441
        "start_memory" => integer 7013664
        "stop_time" => float 1406232092.4442
        "stop_memory" => integer 7014216
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4444
        "start_memory" => integer 7018888
        "stop_time" => float 1406232092.4444
        "stop_memory" => integer 7019464
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4465
        "start_memory" => integer 7150528
        "stop_time" => float 1406232092.4466
        "stop_memory" => integer 7151080
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4467
        "start_memory" => integer 7155760
        "stop_time" => float 1406232092.4468
        "stop_memory" => integer 7156336
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4492
        "start_memory" => integer 7325520
        "stop_time" => float 1406232092.4493
        "stop_memory" => integer 7326072
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4494
        "start_memory" => integer 7330760
        "stop_time" => float 1406232092.4495
        "stop_memory" => integer 7331320
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.453
        "start_memory" => integer 7386984
        "stop_time" => float 1406232092.4531
        "stop_memory" => integer 7387560
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4532
        "start_memory" => integer 7392472
        "stop_time" => float 1406232092.4533
        "stop_memory" => integer 7393040
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4543
        "start_memory" => integer 7433072
        "stop_time" => float 1406232092.4544
        "stop_memory" => integer 7433648
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4545
        "start_memory" => integer 7438600
        "stop_time" => float 1406232092.4546
        "stop_memory" => integer 7439192
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4564
        "start_memory" => integer 7465136
        "stop_time" => float 1406232092.4565
        "stop_memory" => integer 7465704
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4566
        "start_memory" => integer 7470576
        "stop_time" => float 1406232092.4567
        "stop_memory" => integer 7471152
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4597
        "start_memory" => integer 7497208
        "stop_time" => float 1406232092.4598
        "stop_memory" => integer 7497784
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4651
        "start_memory" => integer 7508688
        "stop_time" => float 1406232092.4652
        "stop_memory" => integer 7509248
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4656
        "start_memory" => integer 7519136
        "stop_time" => float 1406232092.4656
        "stop_memory" => integer 7519704
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4678
        "start_memory" => integer 7530304
        "stop_time" => float 1406232092.4679
        "stop_memory" => integer 7530856
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4681
        "start_memory" => integer 7535568
        "stop_time" => float 1406232092.4681
        "stop_memory" => integer 7536168
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4688
        "start_memory" => integer 7541632
        "stop_time" => float 1406232092.4689
        "stop_memory" => integer 7542184
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.469
        "start_memory" => integer 7546912
        "stop_time" => float 1406232092.469
        "stop_memory" => integer 7547488
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4698
        "start_memory" => integer 7552936
        "stop_time" => float 1406232092.4698
        "stop_memory" => integer 7553488
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.47
        "start_memory" => integer 7558240
        "stop_time" => float 1406232092.4701
        "stop_memory" => integer 7558816
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4715
        "start_memory" => integer 7570816
        "stop_time" => float 1406232092.4716
        "stop_memory" => integer 7571352
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4717
        "start_memory" => integer 7576000
        "stop_time" => float 1406232092.4718
        "stop_memory" => integer 7576568
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4726
        "start_memory" => integer 7579632
        "stop_time" => float 1406232092.4727
        "stop_memory" => integer 7580208
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4728
        "start_memory" => integer 7589472
        "stop_time" => float 1406232092.4729
        "stop_memory" => integer 7590008
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4731
        "start_memory" => integer 7596728
        "stop_time" => float 1406232092.4732
        "stop_memory" => integer 7597296
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4767
        "start_memory" => integer 7974688
        "stop_time" => float 1406232092.4768
        "stop_memory" => integer 7975264
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4778
        "start_memory" => integer 8049720
        "stop_time" => float 1406232092.4778
        "stop_memory" => integer 8050304
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4788
        "start_memory" => integer 8095536
        "stop_time" => float 1406232092.4788
        "stop_memory" => integer 8096096
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.479
        "start_memory" => integer 8100960
        "stop_time" => float 1406232092.479
        "stop_memory" => integer 8101544
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4798
        "start_memory" => integer 8110504
        "stop_time" => float 1406232092.4799
        "stop_memory" => integer 8111048
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4806
        "start_memory" => integer 8142512
        "stop_time" => float 1406232092.4807
        "stop_memory" => integer 8143072
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4815
        "start_memory" => integer 8177504
        "stop_time" => float 1406232092.4816
        "stop_memory" => integer 8178080
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4824
        "start_memory" => integer 8210192
        "stop_time" => float 1406232092.4825
        "stop_memory" => integer 8210728
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4826
        "start_memory" => integer 8215384
        "stop_time" => float 1406232092.4827
        "stop_memory" => integer 8215952
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.486
        "start_memory" => integer 8257760
        "stop_time" => float 1406232092.486
        "stop_memory" => integer 8258352
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4862
        "start_memory" => integer 8263536
        "stop_time" => float 1406232092.4862
        "stop_memory" => integer 8264128
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4903
        "start_memory" => integer 8308232
        "stop_time" => float 1406232092.4904
        "stop_memory" => integer 8308784
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4905
        "start_memory" => integer 8313720
        "stop_time" => float 1406232092.4906
        "stop_memory" => integer 8314304
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4978
        "start_memory" => integer 8415992
        "stop_time" => float 1406232092.498
        "stop_memory" => integer 8416520
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4981
        "start_memory" => integer 8421176
        "stop_time" => float 1406232092.4982
        "stop_memory" => integer 8421744
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4991
        "start_memory" => integer 8436672
        "stop_time" => float 1406232092.4992
        "stop_memory" => integer 8437224
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.4994
        "start_memory" => integer 8441872
        "stop_time" => float 1406232092.4995
        "stop_memory" => integer 8442440
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5008
        "start_memory" => integer 8508872
        "stop_time" => float 1406232092.5009
        "stop_memory" => integer 8509432
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.501
        "start_memory" => integer 8514288
        "stop_time" => float 1406232092.501
        "stop_memory" => integer 8514864
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.502
        "start_memory" => integer 8538304
        "stop_time" => float 1406232092.502
        "stop_memory" => integer 8538912
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5022
        "start_memory" => integer 8543832
        "stop_time" => float 1406232092.5022
        "stop_memory" => integer 8544424
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5041
        "start_memory" => integer 8615416
        "stop_time" => float 1406232092.5042
        "stop_memory" => integer 8615952
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5043
        "start_memory" => integer 8620824
        "stop_time" => float 1406232092.5045
        "stop_memory" => integer 8621376
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5054
        "start_memory" => integer 8649080
        "stop_time" => float 1406232092.5055
        "stop_memory" => integer 8649616
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5056
        "start_memory" => integer 8654272
        "stop_time" => float 1406232092.5057
        "stop_memory" => integer 8654840
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5075
        "start_memory" => integer 8776064
        "stop_time" => float 1406232092.5076
        "stop_memory" => integer 8776608
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5077
        "start_memory" => integer 8781280
        "stop_time" => float 1406232092.5078
        "stop_memory" => integer 8781848
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5154
        "start_memory" => integer 8813256
        "stop_time" => float 1406232092.5155
        "stop_memory" => integer 8813800
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5157
        "start_memory" => integer 8818448
        "stop_time" => float 1406232092.5157
        "stop_memory" => integer 8819016
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5171
        "start_memory" => integer 8919312
        "stop_time" => float 1406232092.5172
        "stop_memory" => integer 8919872
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5173
        "start_memory" => integer 8924584
        "stop_time" => float 1406232092.5175
        "stop_memory" => integer 8925160
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.519
        "start_memory" => integer 9032896
        "stop_time" => float 1406232092.5191
        "stop_memory" => integer 9033464
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5192
        "start_memory" => integer 9038384
        "stop_time" => float 1406232092.5192
        "stop_memory" => integer 9038968
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5202
        "start_memory" => integer 9060160
        "stop_time" => float 1406232092.5202
        "stop_memory" => integer 9060736
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5205
        "start_memory" => integer 9025208
        "stop_time" => float 1406232092.5206
        "stop_memory" => integer 9027144
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5212
        "start_memory" => integer 9097864
        "stop_time" => float 1406232092.5213
        "stop_memory" => integer 9099592
    )
    "kp/7o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1406232092.5213
        "start_memory" => integer 9099352
        "stop_time" => float 1406232092.5213
        "stop_memory" => integer 9101080
    )
)

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