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 1441262932.7529
        "start_memory" => integer 1116232
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7529
        "start_memory" => integer 1118488
        "stop_time" => float 1441262932.753
        "stop_memory" => integer 1119176
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7531
        "start_memory" => integer 1122720
        "stop_time" => float 1441262932.7531
        "stop_memory" => integer 1123328
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7538
        "start_memory" => integer 1199792
        "stop_time" => float 1441262932.7539
        "stop_memory" => integer 1200344
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7539
        "start_memory" => integer 1203848
        "stop_time" => float 1441262932.754
        "stop_memory" => integer 1204440
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7541
        "start_memory" => integer 1212408
        "stop_time" => float 1441262932.7542
        "stop_memory" => integer 1212960
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7542
        "start_memory" => integer 1216424
        "stop_time" => float 1441262932.7543
        "stop_memory" => integer 1217008
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7545
        "start_memory" => integer 1225864
        "stop_time" => float 1441262932.7545
        "stop_memory" => integer 1226424
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7546
        "start_memory" => integer 1229864
        "stop_time" => float 1441262932.7546
        "stop_memory" => integer 1230520
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7556
        "start_memory" => integer 1325368
        "stop_time" => float 1441262932.7557
        "stop_memory" => integer 1325968
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7558
        "start_memory" => integer 1329448
        "stop_time" => float 1441262932.7558
        "stop_memory" => integer 1330040
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.756
        "start_memory" => integer 1341824
        "stop_time" => float 1441262932.7561
        "stop_memory" => integer 1342376
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7561
        "start_memory" => integer 1345800
        "stop_time" => float 1441262932.7562
        "stop_memory" => integer 1346368
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7566
        "start_memory" => integer 1380760
        "stop_time" => float 1441262932.7566
        "stop_memory" => integer 1381360
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7566
        "start_memory" => integer 1382432
        "stop_time" => float 1441262932.7567
        "stop_memory" => integer 1382968
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7568
        "start_memory" => integer 1386376
        "stop_time" => float 1441262932.7569
        "stop_memory" => integer 1386952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7573
        "start_memory" => integer 1406200
        "stop_time" => float 1441262932.7574
        "stop_memory" => integer 1406904
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7575
        "start_memory" => integer 1410328
        "stop_time" => float 1441262932.7575
        "stop_memory" => integer 1410896
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7586
        "start_memory" => integer 1506504
        "stop_time" => float 1441262932.7587
        "stop_memory" => integer 1507104
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7587
        "start_memory" => integer 1510608
        "stop_time" => float 1441262932.7588
        "stop_memory" => integer 1511208
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7593
        "start_memory" => integer 1550488
        "stop_time" => float 1441262932.7594
        "stop_memory" => integer 1550992
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7594
        "start_memory" => integer 1551632
        "stop_time" => float 1441262932.7594
        "stop_memory" => integer 1552208
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7629
        "start_memory" => integer 1951384
        "stop_time" => float 1441262932.763
        "stop_memory" => integer 1951968
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.763
        "start_memory" => integer 1955472
        "stop_time" => float 1441262932.7631
        "stop_memory" => integer 1956072
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7633
        "start_memory" => integer 1957704
        "stop_time" => float 1441262932.7633
        "stop_memory" => integer 1958304
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7634
        "start_memory" => integer 1961816
        "stop_time" => float 1441262932.7635
        "stop_memory" => integer 1962392
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7639
        "start_memory" => integer 1992040
        "stop_time" => float 1441262932.7639
        "stop_memory" => integer 1992600
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.764
        "start_memory" => integer 1996104
        "stop_time" => float 1441262932.7641
        "stop_memory" => integer 1996704
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7647
        "start_memory" => integer 2059016
        "stop_time" => float 1441262932.7648
        "stop_memory" => integer 2059568
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7648
        "start_memory" => integer 2063000
        "stop_time" => float 1441262932.7649
        "stop_memory" => integer 2063568
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.7668
        "start_memory" => integer 2122480
        "stop_time" => float 1441262932.7669
        "stop_memory" => integer 2123096
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8132
        "start_memory" => integer 2163992
        "stop_time" => float 1441262932.8133
        "stop_memory" => integer 2164568
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8134
        "start_memory" => integer 2167992
        "stop_time" => float 1441262932.8134
        "stop_memory" => integer 2168832
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.814
        "start_memory" => integer 2195080
        "stop_time" => float 1441262932.8141
        "stop_memory" => integer 2195656
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8141
        "start_memory" => integer 2199136
        "stop_time" => float 1441262932.8142
        "stop_memory" => integer 2199728
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8147
        "start_memory" => integer 2217024
        "stop_time" => float 1441262932.8147
        "stop_memory" => integer 2217592
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8148
        "start_memory" => integer 2221056
        "stop_time" => float 1441262932.8148
        "stop_memory" => integer 2221648
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8159
        "start_memory" => integer 2265120
        "stop_time" => float 1441262932.816
        "stop_memory" => integer 2265720
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8162
        "start_memory" => integer 2277240
        "stop_time" => float 1441262932.8162
        "stop_memory" => integer 2277816
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8163
        "start_memory" => integer 2281336
        "stop_time" => float 1441262932.8163
        "stop_memory" => integer 2281920
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8168
        "start_memory" => integer 2319968
        "stop_time" => float 1441262932.8168
        "stop_memory" => integer 2320568
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.817
        "start_memory" => integer 2332688
        "stop_time" => float 1441262932.817
        "stop_memory" => integer 2333264
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8174
        "start_memory" => integer 2360280
        "stop_time" => float 1441262932.8174
        "stop_memory" => integer 2360880
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8176
        "start_memory" => integer 2368672
        "stop_time" => float 1441262932.8176
        "stop_memory" => integer 2369248
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8178
        "start_memory" => integer 2382416
        "stop_time" => float 1441262932.8179
        "stop_memory" => integer 2383016
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.818
        "start_memory" => integer 2390048
        "stop_time" => float 1441262932.8181
        "stop_memory" => integer 2390640
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8183
        "start_memory" => integer 2403936
        "stop_time" => float 1441262932.8184
        "stop_memory" => integer 2404528
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8186
        "start_memory" => integer 2418160
        "stop_time" => float 1441262932.8186
        "stop_memory" => integer 2418752
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8188
        "start_memory" => integer 2428248
        "stop_time" => float 1441262932.8188
        "stop_memory" => integer 2428840
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.819
        "start_memory" => integer 2437496
        "stop_time" => float 1441262932.819
        "stop_memory" => integer 2438088
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8193
        "start_memory" => integer 2483448
        "stop_time" => float 1441262932.8193
        "stop_memory" => integer 2484024
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8196
        "start_memory" => integer 2506960
        "stop_time" => float 1441262932.8197
        "stop_memory" => integer 2507560
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8199
        "start_memory" => integer 2520856
        "stop_time" => float 1441262932.8199
        "stop_memory" => integer 2521432
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8202
        "start_memory" => integer 2540632
        "stop_time" => float 1441262932.8202
        "stop_memory" => integer 2541216
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8204
        "start_memory" => integer 2554872
        "stop_time" => float 1441262932.8204
        "stop_memory" => integer 2555440
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8205
        "start_memory" => integer 2558896
        "stop_time" => float 1441262932.8205
        "stop_memory" => integer 2559480
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8207
        "start_memory" => integer 2581680
        "stop_time" => float 1441262932.8208
        "stop_memory" => integer 2582240
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8209
        "start_memory" => integer 2585672
        "stop_time" => float 1441262932.8209
        "stop_memory" => integer 2586256
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8229
        "start_memory" => integer 2680184
        "stop_time" => float 1441262932.823
        "stop_memory" => integer 2680760
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8314
        "start_memory" => integer 2711336
        "stop_time" => float 1441262932.8314
        "stop_memory" => integer 2711912
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8315
        "start_memory" => integer 2715392
        "stop_time" => float 1441262932.8315
        "stop_memory" => integer 2715984
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.835
        "start_memory" => integer 2735120
        "stop_time" => float 1441262932.835
        "stop_memory" => integer 2735704
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8351
        "start_memory" => integer 2739256
        "stop_time" => float 1441262932.8351
        "stop_memory" => integer 2739856
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8385
        "start_memory" => integer 2759064
        "stop_time" => float 1441262932.8385
        "stop_memory" => integer 2759624
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8386
        "start_memory" => integer 2763104
        "stop_time" => float 1441262932.8386
        "stop_memory" => integer 2764208
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8393
        "start_memory" => integer 2818736
        "stop_time" => float 1441262932.8394
        "stop_memory" => integer 2819336
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8429
        "start_memory" => integer 2826632
        "stop_time" => float 1441262932.8429
        "stop_memory" => integer 2827208
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.843
        "start_memory" => integer 2830736
        "stop_time" => float 1441262932.843
        "stop_memory" => integer 2831336
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8548
        "start_memory" => integer 2871024
        "stop_time" => float 1441262932.8548
        "stop_memory" => integer 2871600
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.855
        "start_memory" => integer 2875128
        "stop_time" => float 1441262932.855
        "stop_memory" => integer 2875728
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8552
        "start_memory" => integer 2891696
        "stop_time" => float 1441262932.8552
        "stop_memory" => integer 2892272
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8558
        "start_memory" => integer 2899592
        "stop_time" => float 1441262932.8559
        "stop_memory" => integer 2900160
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.856
        "start_memory" => integer 2903632
        "stop_time" => float 1441262932.856
        "stop_memory" => integer 2904224
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8568
        "start_memory" => integer 2953696
        "stop_time" => float 1441262932.8568
        "stop_memory" => integer 2954280
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8569
        "start_memory" => integer 2957784
        "stop_time" => float 1441262932.8569
        "stop_memory" => integer 2958384
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8612
        "start_memory" => integer 2977784
        "stop_time" => float 1441262932.8612
        "stop_memory" => integer 2978344
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8613
        "start_memory" => integer 2981816
        "stop_time" => float 1441262932.8613
        "stop_memory" => integer 2982408
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.862
        "start_memory" => integer 2997576
        "stop_time" => float 1441262932.862
        "stop_memory" => integer 2998112
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8621
        "start_memory" => integer 3001520
        "stop_time" => float 1441262932.8622
        "stop_memory" => integer 3002096
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8633
        "start_memory" => integer 3008768
        "stop_time" => float 1441262932.8634
        "stop_memory" => integer 3009368
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8634
        "start_memory" => integer 3012880
        "stop_time" => float 1441262932.8635
        "stop_memory" => integer 3013480
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8736
        "start_memory" => integer 3048504
        "stop_time" => float 1441262932.8737
        "stop_memory" => integer 3049096
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8742
        "start_memory" => integer 3056792
        "stop_time" => float 1441262932.8743
        "stop_memory" => integer 3057352
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8743
        "start_memory" => integer 3060840
        "stop_time" => float 1441262932.8744
        "stop_memory" => integer 3061432
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8777
        "start_memory" => integer 3079072
        "stop_time" => float 1441262932.8777
        "stop_memory" => integer 3079656
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8802
        "start_memory" => integer 3084256
        "stop_time" => float 1441262932.8802
        "stop_memory" => integer 3084824
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8804
        "start_memory" => integer 3088288
        "stop_time" => float 1441262932.8804
        "stop_memory" => integer 3088880
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8832
        "start_memory" => integer 3182944
        "stop_time" => float 1441262932.8833
        "stop_memory" => integer 3183544
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8834
        "start_memory" => integer 3187096
        "stop_time" => float 1441262932.8834
        "stop_memory" => integer 3187688
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8838
        "start_memory" => integer 3200576
        "stop_time" => float 1441262932.8838
        "stop_memory" => integer 3201168
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8839
        "start_memory" => integer 3204720
        "stop_time" => float 1441262932.8839
        "stop_memory" => integer 3205328
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8851
        "start_memory" => integer 3210360
        "stop_time" => float 1441262932.8851
        "stop_memory" => integer 3210928
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8852
        "start_memory" => integer 3214432
        "stop_time" => float 1441262932.8852
        "stop_memory" => integer 3215032
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8863
        "start_memory" => integer 3309824
        "stop_time" => float 1441262932.8864
        "stop_memory" => integer 3310416
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8865
        "start_memory" => integer 3313968
        "stop_time" => float 1441262932.8865
        "stop_memory" => integer 3314576
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8867
        "start_memory" => integer 3326616
        "stop_time" => float 1441262932.8867
        "stop_memory" => integer 3327184
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8868
        "start_memory" => integer 3330688
        "stop_time" => float 1441262932.8868
        "stop_memory" => integer 3331312
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8876
        "start_memory" => integer 3374952
        "stop_time" => float 1441262932.8876
        "stop_memory" => integer 3375528
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8877
        "start_memory" => integer 3379048
        "stop_time" => float 1441262932.8878
        "stop_memory" => integer 3379648
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8885
        "start_memory" => integer 3424280
        "stop_time" => float 1441262932.8885
        "stop_memory" => integer 3424856
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8886
        "start_memory" => integer 3428360
        "stop_time" => float 1441262932.8886
        "stop_memory" => integer 3428960
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.89
        "start_memory" => integer 3456272
        "stop_time" => float 1441262932.89
        "stop_memory" => integer 3456864
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8902
        "start_memory" => integer 3460424
        "stop_time" => float 1441262932.8902
        "stop_memory" => integer 3461032
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8917
        "start_memory" => integer 3497288
        "stop_time" => float 1441262932.8917
        "stop_memory" => integer 3497888
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8919
        "start_memory" => integer 3501520
        "stop_time" => float 1441262932.8919
        "stop_memory" => integer 3502136
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8922
        "start_memory" => integer 3514280
        "stop_time" => float 1441262932.8923
        "stop_memory" => integer 3514872
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8924
        "start_memory" => integer 3518496
        "stop_time" => float 1441262932.8925
        "stop_memory" => integer 3519112
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8936
        "start_memory" => integer 3571232
        "stop_time" => float 1441262932.8936
        "stop_memory" => integer 3571824
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8937
        "start_memory" => integer 3575432
        "stop_time" => float 1441262932.8937
        "stop_memory" => integer 3576048
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8946
        "start_memory" => integer 3608640
        "stop_time" => float 1441262932.8946
        "stop_memory" => integer 3609232
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8947
        "start_memory" => integer 3612856
        "stop_time" => float 1441262932.8947
        "stop_memory" => integer 3613472
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8955
        "start_memory" => integer 3642096
        "stop_time" => float 1441262932.8956
        "stop_memory" => integer 3642688
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8956
        "start_memory" => integer 3646296
        "stop_time" => float 1441262932.8957
        "stop_memory" => integer 3646912
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8968
        "start_memory" => integer 3722832
        "stop_time" => float 1441262932.8968
        "stop_memory" => integer 3723424
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8969
        "start_memory" => integer 3727032
        "stop_time" => float 1441262932.8969
        "stop_memory" => integer 3727648
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8987
        "start_memory" => integer 3764168
        "stop_time" => float 1441262932.8987
        "stop_memory" => integer 3764744
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8988
        "start_memory" => integer 3768304
        "stop_time" => float 1441262932.8988
        "stop_memory" => integer 3768912
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8996
        "start_memory" => integer 3787240
        "stop_time" => float 1441262932.8996
        "stop_memory" => integer 3787776
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.8997
        "start_memory" => integer 3791224
        "stop_time" => float 1441262932.8998
        "stop_memory" => integer 3791792
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9008
        "start_memory" => integer 3861352
        "stop_time" => float 1441262932.9008
        "stop_memory" => integer 3861936
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9009
        "start_memory" => integer 3865392
        "stop_time" => float 1441262932.9009
        "stop_memory" => integer 3865968
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9042
        "start_memory" => integer 3880168
        "stop_time" => float 1441262932.9043
        "stop_memory" => integer 3880728
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9043
        "start_memory" => integer 3884160
        "stop_time" => float 1441262932.9044
        "stop_memory" => integer 3884744
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9066
        "start_memory" => integer 3906584
        "stop_time" => float 1441262932.9067
        "stop_memory" => integer 3907144
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9067
        "start_memory" => integer 3910568
        "stop_time" => float 1441262932.9068
        "stop_memory" => integer 3911136
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9076
        "start_memory" => integer 3934280
        "stop_time" => float 1441262932.9077
        "stop_memory" => integer 3934848
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9077
        "start_memory" => integer 3938296
        "stop_time" => float 1441262932.9078
        "stop_memory" => integer 3938864
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9086
        "start_memory" => integer 3964808
        "stop_time" => float 1441262932.9086
        "stop_memory" => integer 3965376
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9087
        "start_memory" => integer 3968800
        "stop_time" => float 1441262932.9088
        "stop_memory" => integer 3970392
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9103
        "start_memory" => integer 4017512
        "stop_time" => float 1441262932.9104
        "stop_memory" => integer 4018080
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9105
        "start_memory" => integer 4021544
        "stop_time" => float 1441262932.9105
        "stop_memory" => integer 4022128
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9122
        "start_memory" => integer 4036672
        "stop_time" => float 1441262932.9123
        "stop_memory" => integer 4037232
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9124
        "start_memory" => integer 4040680
        "stop_time" => float 1441262932.9124
        "stop_memory" => integer 4041248
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9135
        "start_memory" => integer 4057872
        "stop_time" => float 1441262932.9136
        "stop_memory" => integer 4058456
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9136
        "start_memory" => integer 4061936
        "stop_time" => float 1441262932.9137
        "stop_memory" => integer 4062528
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9142
        "start_memory" => integer 4078304
        "stop_time" => float 1441262932.9142
        "stop_memory" => integer 4078872
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9143
        "start_memory" => integer 4082376
        "stop_time" => float 1441262932.9144
        "stop_memory" => integer 4082968
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.915
        "start_memory" => integer 4095864
        "stop_time" => float 1441262932.915
        "stop_memory" => integer 4096432
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9151
        "start_memory" => integer 4099936
        "stop_time" => float 1441262932.9151
        "stop_memory" => integer 4100528
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9157
        "start_memory" => integer 4113440
        "stop_time" => float 1441262932.9158
        "stop_memory" => integer 4114008
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9159
        "start_memory" => integer 4117512
        "stop_time" => float 1441262932.9159
        "stop_memory" => integer 4118104
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9164
        "start_memory" => integer 4131016
        "stop_time" => float 1441262932.9165
        "stop_memory" => integer 4131584
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9165
        "start_memory" => integer 4135088
        "stop_time" => float 1441262932.9166
        "stop_memory" => integer 4135680
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9171
        "start_memory" => integer 4148576
        "stop_time" => float 1441262932.9171
        "stop_memory" => integer 4149144
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9172
        "start_memory" => integer 4152648
        "stop_time" => float 1441262932.9172
        "stop_memory" => integer 4153240
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9177
        "start_memory" => integer 4166136
        "stop_time" => float 1441262932.9178
        "stop_memory" => integer 4166704
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9179
        "start_memory" => integer 4170208
        "stop_time" => float 1441262932.918
        "stop_memory" => integer 4170800
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9185
        "start_memory" => integer 4183712
        "stop_time" => float 1441262932.9186
        "stop_memory" => integer 4184280
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9187
        "start_memory" => integer 4187784
        "stop_time" => float 1441262932.9187
        "stop_memory" => integer 4188376
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9192
        "start_memory" => integer 4201272
        "stop_time" => float 1441262932.9192
        "stop_memory" => integer 4201840
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9193
        "start_memory" => integer 4205344
        "stop_time" => float 1441262932.9194
        "stop_memory" => integer 4205936
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9198
        "start_memory" => integer 4218928
        "stop_time" => float 1441262932.9199
        "stop_memory" => integer 4219496
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.92
        "start_memory" => integer 4223000
        "stop_time" => float 1441262932.92
        "stop_memory" => integer 4223592
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9205
        "start_memory" => integer 4236488
        "stop_time" => float 1441262932.9206
        "stop_memory" => integer 4237056
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9207
        "start_memory" => integer 4240560
        "stop_time" => float 1441262932.9208
        "stop_memory" => integer 4241152
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9214
        "start_memory" => integer 4254048
        "stop_time" => float 1441262932.9215
        "stop_memory" => integer 4254616
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9216
        "start_memory" => integer 4258120
        "stop_time" => float 1441262932.9217
        "stop_memory" => integer 4258712
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9225
        "start_memory" => integer 4271592
        "stop_time" => float 1441262932.9226
        "stop_memory" => integer 4272160
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9227
        "start_memory" => integer 4275664
        "stop_time" => float 1441262932.9227
        "stop_memory" => integer 4276256
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9233
        "start_memory" => integer 4289152
        "stop_time" => float 1441262932.9234
        "stop_memory" => integer 4289720
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9235
        "start_memory" => integer 4293224
        "stop_time" => float 1441262932.9235
        "stop_memory" => integer 4293816
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9241
        "start_memory" => integer 4306728
        "stop_time" => float 1441262932.9241
        "stop_memory" => integer 4307296
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9242
        "start_memory" => integer 4310800
        "stop_time" => float 1441262932.9242
        "stop_memory" => integer 4311392
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9248
        "start_memory" => integer 4324320
        "stop_time" => float 1441262932.9248
        "stop_memory" => integer 4324888
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9249
        "start_memory" => integer 4328392
        "stop_time" => float 1441262932.9249
        "stop_memory" => integer 4328984
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9256
        "start_memory" => integer 4341896
        "stop_time" => float 1441262932.9256
        "stop_memory" => integer 4342464
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9257
        "start_memory" => integer 4345968
        "stop_time" => float 1441262932.9258
        "stop_memory" => integer 4346560
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9263
        "start_memory" => integer 4359600
        "stop_time" => float 1441262932.9263
        "stop_memory" => integer 4360168
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9264
        "start_memory" => integer 4363672
        "stop_time" => float 1441262932.9265
        "stop_memory" => integer 4364264
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9271
        "start_memory" => integer 4377192
        "stop_time" => float 1441262932.9271
        "stop_memory" => integer 4377760
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9272
        "start_memory" => integer 4381264
        "stop_time" => float 1441262932.9273
        "stop_memory" => integer 4381856
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9278
        "start_memory" => integer 4394768
        "stop_time" => float 1441262932.9279
        "stop_memory" => integer 4395336
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.928
        "start_memory" => integer 4398840
        "stop_time" => float 1441262932.9281
        "stop_memory" => integer 4399432
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9286
        "start_memory" => integer 4412344
        "stop_time" => float 1441262932.9287
        "stop_memory" => integer 4412912
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9288
        "start_memory" => integer 4416416
        "stop_time" => float 1441262932.9288
        "stop_memory" => integer 4417008
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9293
        "start_memory" => integer 4429904
        "stop_time" => float 1441262932.9294
        "stop_memory" => integer 4430472
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9294
        "start_memory" => integer 4433976
        "stop_time" => float 1441262932.9295
        "stop_memory" => integer 4434568
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.93
        "start_memory" => integer 4447464
        "stop_time" => float 1441262932.93
        "stop_memory" => integer 4448032
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9301
        "start_memory" => integer 4451536
        "stop_time" => float 1441262932.9301
        "stop_memory" => integer 4452128
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9307
        "start_memory" => integer 4465040
        "stop_time" => float 1441262932.9308
        "stop_memory" => integer 4465608
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9309
        "start_memory" => integer 4469112
        "stop_time" => float 1441262932.931
        "stop_memory" => integer 4469704
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9315
        "start_memory" => integer 4482608
        "stop_time" => float 1441262932.9316
        "stop_memory" => integer 4483176
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9317
        "start_memory" => integer 4486680
        "stop_time" => float 1441262932.9317
        "stop_memory" => integer 4487272
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9332
        "start_memory" => integer 4500408
        "stop_time" => float 1441262932.9332
        "stop_memory" => integer 4500976
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9333
        "start_memory" => integer 4504480
        "stop_time" => float 1441262932.9334
        "stop_memory" => integer 4505072
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9357
        "start_memory" => integer 4527992
        "stop_time" => float 1441262932.9357
        "stop_memory" => integer 4528560
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9358
        "start_memory" => integer 4532024
        "stop_time" => float 1441262932.9358
        "stop_memory" => integer 4532600
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9371
        "start_memory" => integer 4613816
        "stop_time" => float 1441262932.9371
        "stop_memory" => integer 4614392
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9372
        "start_memory" => integer 4617856
        "stop_time" => float 1441262932.9372
        "stop_memory" => integer 4618448
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9389
        "start_memory" => integer 4719624
        "stop_time" => float 1441262932.9389
        "stop_memory" => integer 4720176
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.939
        "start_memory" => integer 4723656
        "stop_time" => float 1441262932.9391
        "stop_memory" => integer 4724240
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9408
        "start_memory" => integer 4757232
        "stop_time" => float 1441262932.9409
        "stop_memory" => integer 4757824
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.941
        "start_memory" => integer 4761320
        "stop_time" => float 1441262932.941
        "stop_memory" => integer 4761920
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9416
        "start_memory" => integer 4787536
        "stop_time" => float 1441262932.9417
        "stop_memory" => integer 4788128
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9418
        "start_memory" => integer 4791704
        "stop_time" => float 1441262932.9419
        "stop_memory" => integer 4792312
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9429
        "start_memory" => integer 4811016
        "stop_time" => float 1441262932.943
        "stop_memory" => integer 4811584
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9431
        "start_memory" => integer 4815112
        "stop_time" => float 1441262932.9432
        "stop_memory" => integer 4815712
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9446
        "start_memory" => integer 4834328
        "stop_time" => float 1441262932.9446
        "stop_memory" => integer 4834920
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9474
        "start_memory" => integer 4844272
        "stop_time" => float 1441262932.9475
        "stop_memory" => integer 4844848
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9477
        "start_memory" => integer 4853120
        "stop_time" => float 1441262932.9477
        "stop_memory" => integer 4853704
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9493
        "start_memory" => integer 4862760
        "stop_time" => float 1441262932.9493
        "stop_memory" => integer 4863312
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9494
        "start_memory" => integer 4866792
        "stop_time" => float 1441262932.9495
        "stop_memory" => integer 4867416
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9501
        "start_memory" => integer 4871408
        "stop_time" => float 1441262932.9501
        "stop_memory" => integer 4871992
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9502
        "start_memory" => integer 4875448
        "stop_time" => float 1441262932.9503
        "stop_memory" => integer 4876032
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9508
        "start_memory" => integer 4879960
        "stop_time" => float 1441262932.9509
        "stop_memory" => integer 4880568
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.951
        "start_memory" => integer 4884080
        "stop_time" => float 1441262932.951
        "stop_memory" => integer 4884688
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9521
        "start_memory" => integer 4893632
        "stop_time" => float 1441262932.9522
        "stop_memory" => integer 4894200
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9522
        "start_memory" => integer 4897720
        "stop_time" => float 1441262932.9523
        "stop_memory" => integer 4898352
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9528
        "start_memory" => integer 4900496
        "stop_time" => float 1441262932.9529
        "stop_memory" => integer 4901144
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.953
        "start_memory" => integer 4907912
        "stop_time" => float 1441262932.953
        "stop_memory" => integer 4908464
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9531
        "start_memory" => integer 4911920
        "stop_time" => float 1441262932.9532
        "stop_memory" => integer 4912504
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9559
        "start_memory" => integer 5144072
        "stop_time" => float 1441262932.956
        "stop_memory" => integer 5144664
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9571
        "start_memory" => integer 5201432
        "stop_time" => float 1441262932.9571
        "stop_memory" => integer 5202016
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9577
        "start_memory" => integer 5236424
        "stop_time" => float 1441262932.9577
        "stop_memory" => integer 5237008
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9578
        "start_memory" => integer 5240528
        "stop_time" => float 1441262932.9579
        "stop_memory" => integer 5241128
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9585
        "start_memory" => integer 5247152
        "stop_time" => float 1441262932.9586
        "stop_memory" => integer 5247712
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9591
        "start_memory" => integer 5273856
        "stop_time" => float 1441262932.9592
        "stop_memory" => integer 5274432
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9598
        "start_memory" => integer 5303352
        "stop_time" => float 1441262932.9598
        "stop_memory" => integer 5303944
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9603
        "start_memory" => integer 5330624
        "stop_time" => float 1441262932.9604
        "stop_memory" => integer 5331160
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9605
        "start_memory" => integer 5334664
        "stop_time" => float 1441262932.9606
        "stop_memory" => integer 5335248
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9629
        "start_memory" => integer 5362392
        "stop_time" => float 1441262932.963
        "stop_memory" => integer 5363008
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9631
        "start_memory" => integer 5366808
        "stop_time" => float 1441262932.9632
        "stop_memory" => integer 5367408
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9656
        "start_memory" => integer 5398616
        "stop_time" => float 1441262932.9657
        "stop_memory" => integer 5399192
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9658
        "start_memory" => integer 5402776
        "stop_time" => float 1441262932.9659
        "stop_memory" => integer 5403408
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.97
        "start_memory" => integer 5468168
        "stop_time" => float 1441262932.9701
        "stop_memory" => integer 5468712
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9701
        "start_memory" => integer 5472280
        "stop_time" => float 1441262932.9702
        "stop_memory" => integer 5472872
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9708
        "start_memory" => integer 5482920
        "stop_time" => float 1441262932.9708
        "stop_memory" => integer 5483512
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9709
        "start_memory" => integer 5486976
        "stop_time" => float 1441262932.9709
        "stop_memory" => integer 5487560
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9718
        "start_memory" => integer 5532152
        "stop_time" => float 1441262932.9718
        "stop_memory" => integer 5532752
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9719
        "start_memory" => integer 5536264
        "stop_time" => float 1441262932.972
        "stop_memory" => integer 5536856
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9724
        "start_memory" => integer 5557240
        "stop_time" => float 1441262932.9725
        "stop_memory" => integer 5557848
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9725
        "start_memory" => integer 5561416
        "stop_time" => float 1441262932.9726
        "stop_memory" => integer 5562024
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9737
        "start_memory" => integer 5610704
        "stop_time" => float 1441262932.9738
        "stop_memory" => integer 5611264
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9738
        "start_memory" => integer 5614800
        "stop_time" => float 1441262932.9739
        "stop_memory" => integer 5615384
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9744
        "start_memory" => integer 5637696
        "stop_time" => float 1441262932.9745
        "stop_memory" => integer 5638256
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9746
        "start_memory" => integer 5641760
        "stop_time" => float 1441262932.9746
        "stop_memory" => integer 5642328
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9756
        "start_memory" => integer 5714944
        "stop_time" => float 1441262932.9757
        "stop_memory" => integer 5715512
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9758
        "start_memory" => integer 5718976
        "stop_time" => float 1441262932.9758
        "stop_memory" => integer 5719560
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9876
        "start_memory" => integer 5738720
        "stop_time" => float 1441262932.9877
        "stop_memory" => integer 5739280
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9878
        "start_memory" => integer 5742816
        "stop_time" => float 1441262932.9878
        "stop_memory" => integer 5743472
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9887
        "start_memory" => integer 5803016
        "stop_time" => float 1441262932.9888
        "stop_memory" => integer 5803592
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9888
        "start_memory" => integer 5807088
        "stop_time" => float 1441262932.9889
        "stop_memory" => integer 5807696
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9899
        "start_memory" => integer 5876760
        "stop_time" => float 1441262932.99
        "stop_memory" => integer 5877392
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9901
        "start_memory" => integer 5880976
        "stop_time" => float 1441262932.9901
        "stop_memory" => integer 5881536
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9909
        "start_memory" => integer 5898840
        "stop_time" => float 1441262932.9909
        "stop_memory" => integer 5899464
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9912
        "start_memory" => integer 5865384
        "stop_time" => float 1441262932.9913
        "stop_memory" => integer 5867704
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.992
        "start_memory" => integer 5903888
        "stop_time" => float 1441262932.9921
        "stop_memory" => integer 5905568
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1441262932.9921
        "start_memory" => integer 5905184
        "stop_time" => float 1441262932.9922
        "stop_memory" => integer 5906848
    )
)

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