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 1732268177.0233
        "start_memory" => integer 582720
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0234
        "start_memory" => integer 584936
        "stop_time" => float 1732268177.0243
        "stop_memory" => integer 585600
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0243
        "start_memory" => integer 588024
        "stop_time" => float 1732268177.0254
        "stop_memory" => integer 588632
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0254
        "start_memory" => integer 596848
        "stop_time" => float 1732268177.0264
        "stop_memory" => integer 597400
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0264
        "start_memory" => integer 599816
        "stop_time" => float 1732268177.0276
        "stop_memory" => integer 600408
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0276
        "start_memory" => integer 604464
        "stop_time" => float 1732268177.0284
        "stop_memory" => integer 605016
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0284
        "start_memory" => integer 607400
        "stop_time" => float 1732268177.0295
        "stop_memory" => integer 607984
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0295
        "start_memory" => integer 619256
        "stop_time" => float 1732268177.0304
        "stop_memory" => integer 619816
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0304
        "start_memory" => integer 622184
        "stop_time" => float 1732268177.0315
        "stop_memory" => integer 622832
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0315
        "start_memory" => integer 641712
        "stop_time" => float 1732268177.0325
        "stop_memory" => integer 642288
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0325
        "start_memory" => integer 644680
        "stop_time" => float 1732268177.0336
        "stop_memory" => integer 645256
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0337
        "start_memory" => integer 658776
        "stop_time" => float 1732268177.0345
        "stop_memory" => integer 659320
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0346
        "start_memory" => integer 661664
        "stop_time" => float 1732268177.0356
        "stop_memory" => integer 662240
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0356
        "start_memory" => integer 674616
        "stop_time" => float 1732268177.0365
        "stop_memory" => integer 675216
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0365
        "start_memory" => integer 676264
        "stop_time" => float 1732268177.0375
        "stop_memory" => integer 676800
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0375
        "start_memory" => integer 679152
        "stop_time" => float 1732268177.0386
        "stop_memory" => integer 679728
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0388
        "start_memory" => integer 683536
        "stop_time" => float 1732268177.0399
        "stop_memory" => integer 684216
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.04
        "start_memory" => integer 686560
        "stop_time" => float 1732268177.041
        "stop_memory" => integer 687136
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0411
        "start_memory" => integer 710720
        "stop_time" => float 1732268177.042
        "stop_memory" => integer 711320
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.042
        "start_memory" => integer 713720
        "stop_time" => float 1732268177.043
        "stop_memory" => integer 714320
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.043
        "start_memory" => integer 723472
        "stop_time" => float 1732268177.044
        "stop_memory" => integer 723976
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.044
        "start_memory" => integer 724616
        "stop_time" => float 1732268177.0448
        "stop_memory" => integer 725192
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0451
        "start_memory" => integer 879032
        "stop_time" => float 1732268177.046
        "stop_memory" => integer 879616
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.046
        "start_memory" => integer 882016
        "stop_time" => float 1732268177.0471
        "stop_memory" => integer 882616
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0471
        "start_memory" => integer 883600
        "stop_time" => float 1732268177.048
        "stop_memory" => integer 884176
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.048
        "start_memory" => integer 886576
        "stop_time" => float 1732268177.049
        "stop_memory" => integer 887176
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.049
        "start_memory" => integer 893432
        "stop_time" => float 1732268177.0498
        "stop_memory" => integer 893992
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0499
        "start_memory" => integer 896360
        "stop_time" => float 1732268177.0508
        "stop_memory" => integer 896952
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0509
        "start_memory" => integer 920136
        "stop_time" => float 1732268177.0518
        "stop_memory" => integer 920672
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0518
        "start_memory" => integer 923016
        "stop_time" => float 1732268177.0528
        "stop_memory" => integer 923592
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.0534
        "start_memory" => integer 945984
        "stop_time" => float 1732268177.0544
        "stop_memory" => integer 946584
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7034
        "start_memory" => integer 987496
        "stop_time" => float 1732268177.7036
        "stop_memory" => integer 988072
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7037
        "start_memory" => integer 990424
        "stop_time" => float 1732268177.7039
        "stop_memory" => integer 991264
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7043
        "start_memory" => integer 1002832
        "stop_time" => float 1732268177.7045
        "stop_memory" => integer 1003408
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7045
        "start_memory" => integer 1005800
        "stop_time" => float 1732268177.7047
        "stop_memory" => integer 1006392
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7051
        "start_memory" => integer 1018240
        "stop_time" => float 1732268177.706
        "stop_memory" => integer 1018808
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.706
        "start_memory" => integer 1021184
        "stop_time" => float 1732268177.7069
        "stop_memory" => integer 1021760
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7073
        "start_memory" => integer 1033904
        "stop_time" => float 1732268177.7078
        "stop_memory" => integer 1034496
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7078
        "start_memory" => integer 1040360
        "stop_time" => float 1732268177.7082
        "stop_memory" => integer 1040928
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7082
        "start_memory" => integer 1043320
        "stop_time" => float 1732268177.7087
        "stop_memory" => integer 1043912
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7088
        "start_memory" => integer 1052784
        "stop_time" => float 1732268177.7093
        "stop_memory" => integer 1053384
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7094
        "start_memory" => integer 1059704
        "stop_time" => float 1732268177.7098
        "stop_memory" => integer 1060280
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7099
        "start_memory" => integer 1065352
        "stop_time" => float 1732268177.7103
        "stop_memory" => integer 1065952
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7104
        "start_memory" => integer 1071440
        "stop_time" => float 1732268177.7109
        "stop_memory" => integer 1072016
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7109
        "start_memory" => integer 1080552
        "stop_time" => float 1732268177.7114
        "stop_memory" => integer 1081136
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7115
        "start_memory" => integer 1086520
        "stop_time" => float 1732268177.7119
        "stop_memory" => integer 1087104
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.712
        "start_memory" => integer 1094152
        "stop_time" => float 1732268177.7124
        "stop_memory" => integer 1094752
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7125
        "start_memory" => integer 1101944
        "stop_time" => float 1732268177.7129
        "stop_memory" => integer 1102536
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.713
        "start_memory" => integer 1109024
        "stop_time" => float 1732268177.7134
        "stop_memory" => integer 1109616
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7135
        "start_memory" => integer 1115616
        "stop_time" => float 1732268177.7139
        "stop_memory" => integer 1116208
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7141
        "start_memory" => integer 1152504
        "stop_time" => float 1732268177.7146
        "stop_memory" => integer 1153080
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7147
        "start_memory" => integer 1161120
        "stop_time" => float 1732268177.7151
        "stop_memory" => integer 1161720
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7152
        "start_memory" => integer 1169144
        "stop_time" => float 1732268177.7156
        "stop_memory" => integer 1169720
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7157
        "start_memory" => integer 1179088
        "stop_time" => float 1732268177.7161
        "stop_memory" => integer 1179672
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7162
        "start_memory" => integer 1188352
        "stop_time" => float 1732268177.7165
        "stop_memory" => integer 1188904
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7165
        "start_memory" => integer 1191264
        "stop_time" => float 1732268177.7168
        "stop_memory" => integer 1191848
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7169
        "start_memory" => integer 1203728
        "stop_time" => float 1732268177.7178
        "stop_memory" => integer 1204288
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7179
        "start_memory" => integer 1206648
        "stop_time" => float 1732268177.7189
        "stop_memory" => integer 1207216
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7202
        "start_memory" => integer 1250848
        "stop_time" => float 1732268177.7211
        "stop_memory" => integer 1251432
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7248
        "start_memory" => integer 1252032
        "stop_time" => float 1732268177.7252
        "stop_memory" => integer 1252608
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7253
        "start_memory" => integer 1255016
        "stop_time" => float 1732268177.726
        "stop_memory" => integer 1255608
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7283
        "start_memory" => integer 1267576
        "stop_time" => float 1732268177.7287
        "stop_memory" => integer 1268160
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7287
        "start_memory" => integer 1270584
        "stop_time" => float 1732268177.7291
        "stop_memory" => integer 1271184
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7315
        "start_memory" => integer 1283048
        "stop_time" => float 1732268177.7319
        "stop_memory" => integer 1283608
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.732
        "start_memory" => integer 1286000
        "stop_time" => float 1732268177.7323
        "stop_memory" => integer 1287104
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7324
        "start_memory" => integer 1296960
        "stop_time" => float 1732268177.7327
        "stop_memory" => integer 1297560
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7353
        "start_memory" => integer 1306224
        "stop_time" => float 1732268177.7356
        "stop_memory" => integer 1306800
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7357
        "start_memory" => integer 1309216
        "stop_time" => float 1732268177.736
        "stop_memory" => integer 1309800
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7432
        "start_memory" => integer 1329808
        "stop_time" => float 1732268177.7436
        "stop_memory" => integer 1330392
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7437
        "start_memory" => integer 1332816
        "stop_time" => float 1732268177.744
        "stop_memory" => integer 1333416
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7441
        "start_memory" => integer 1342296
        "stop_time" => float 1732268177.7444
        "stop_memory" => integer 1342872
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7448
        "start_memory" => integer 1349848
        "stop_time" => float 1732268177.7451
        "stop_memory" => integer 1350416
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7451
        "start_memory" => integer 1352800
        "stop_time" => float 1732268177.7455
        "stop_memory" => integer 1353392
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7461
        "start_memory" => integer 1366136
        "stop_time" => float 1732268177.7464
        "stop_memory" => integer 1366720
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7465
        "start_memory" => integer 1369120
        "stop_time" => float 1732268177.7469
        "stop_memory" => integer 1369704
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7497
        "start_memory" => integer 1381936
        "stop_time" => float 1732268177.7501
        "stop_memory" => integer 1382504
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7502
        "start_memory" => integer 1384888
        "stop_time" => float 1732268177.7506
        "stop_memory" => integer 1385480
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.751
        "start_memory" => integer 1394296
        "stop_time" => float 1732268177.7519
        "stop_memory" => integer 1394832
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7519
        "start_memory" => integer 1397184
        "stop_time" => float 1732268177.7529
        "stop_memory" => integer 1397760
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7537
        "start_memory" => integer 1400432
        "stop_time" => float 1732268177.7542
        "stop_memory" => integer 1401032
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7543
        "start_memory" => integer 1403440
        "stop_time" => float 1732268177.7549
        "stop_memory" => integer 1404040
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7566
        "start_memory" => integer 1428200
        "stop_time" => float 1732268177.7571
        "stop_memory" => integer 1428792
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7574
        "start_memory" => integer 1433456
        "stop_time" => float 1732268177.7583
        "stop_memory" => integer 1434016
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7584
        "start_memory" => integer 1436416
        "stop_time" => float 1732268177.7595
        "stop_memory" => integer 1437008
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7613
        "start_memory" => integer 1446656
        "stop_time" => float 1732268177.7614
        "stop_memory" => integer 1447240
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7624
        "start_memory" => integer 1451040
        "stop_time" => float 1732268177.7629
        "stop_memory" => integer 1451608
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7629
        "start_memory" => integer 1453984
        "stop_time" => float 1732268177.7635
        "stop_memory" => integer 1454576
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7645
        "start_memory" => integer 1499968
        "stop_time" => float 1732268177.7652
        "stop_memory" => integer 1500552
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7652
        "start_memory" => integer 1502992
        "stop_time" => float 1732268177.7658
        "stop_memory" => integer 1503592
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7661
        "start_memory" => integer 1517824
        "stop_time" => float 1732268177.7667
        "stop_memory" => integer 1518416
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7667
        "start_memory" => integer 1520848
        "stop_time" => float 1732268177.7673
        "stop_memory" => integer 1521440
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7682
        "start_memory" => integer 1525344
        "stop_time" => float 1732268177.7687
        "stop_memory" => integer 1525920
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7687
        "start_memory" => integer 1528336
        "stop_time" => float 1732268177.7694
        "stop_memory" => integer 1528936
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7698
        "start_memory" => integer 1573304
        "stop_time" => float 1732268177.7705
        "stop_memory" => integer 1573896
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7705
        "start_memory" => integer 1576328
        "stop_time" => float 1732268177.7712
        "stop_memory" => integer 1576936
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7712
        "start_memory" => integer 1581416
        "stop_time" => float 1732268177.7718
        "stop_memory" => integer 1581984
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7719
        "start_memory" => integer 1584392
        "stop_time" => float 1732268177.7725
        "stop_memory" => integer 1584992
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.773
        "start_memory" => integer 1612584
        "stop_time" => float 1732268177.7736
        "stop_memory" => integer 1613160
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7736
        "start_memory" => integer 1615568
        "stop_time" => float 1732268177.7742
        "stop_memory" => integer 1616168
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7746
        "start_memory" => integer 1637424
        "stop_time" => float 1732268177.7751
        "stop_memory" => integer 1638000
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7752
        "start_memory" => integer 1640400
        "stop_time" => float 1732268177.7758
        "stop_memory" => integer 1641000
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7762
        "start_memory" => integer 1652928
        "stop_time" => float 1732268177.7769
        "stop_memory" => integer 1653520
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7769
        "start_memory" => integer 1655960
        "stop_time" => float 1732268177.7776
        "stop_memory" => integer 1656568
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7781
        "start_memory" => integer 1672152
        "stop_time" => float 1732268177.7788
        "stop_memory" => integer 1672752
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7788
        "start_memory" => integer 1675240
        "stop_time" => float 1732268177.7796
        "stop_memory" => integer 1675856
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7796
        "start_memory" => integer 1680416
        "stop_time" => float 1732268177.7803
        "stop_memory" => integer 1681008
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7803
        "start_memory" => integer 1683472
        "stop_time" => float 1732268177.7811
        "stop_memory" => integer 1684088
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7817
        "start_memory" => integer 1729672
        "stop_time" => float 1732268177.7824
        "stop_memory" => integer 1730264
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7824
        "start_memory" => integer 1732752
        "stop_time" => float 1732268177.7831
        "stop_memory" => integer 1733368
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7836
        "start_memory" => integer 1753216
        "stop_time" => float 1732268177.7843
        "stop_memory" => integer 1753808
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7843
        "start_memory" => integer 1756288
        "stop_time" => float 1732268177.7851
        "stop_memory" => integer 1756888
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7855
        "start_memory" => integer 1775424
        "stop_time" => float 1732268177.7862
        "stop_memory" => integer 1776024
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7862
        "start_memory" => integer 1778496
        "stop_time" => float 1732268177.787
        "stop_memory" => integer 1779112
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7875
        "start_memory" => integer 1821856
        "stop_time" => float 1732268177.7882
        "stop_memory" => integer 1822448
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7882
        "start_memory" => integer 1824920
        "stop_time" => float 1732268177.789
        "stop_memory" => integer 1825536
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.79
        "start_memory" => integer 1853424
        "stop_time" => float 1732268177.7908
        "stop_memory" => integer 1854000
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7908
        "start_memory" => integer 1856440
        "stop_time" => float 1732268177.7915
        "stop_memory" => integer 1857048
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.792
        "start_memory" => integer 1872664
        "stop_time" => float 1732268177.7929
        "stop_memory" => integer 1873184
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7929
        "start_memory" => integer 1875544
        "stop_time" => float 1732268177.794
        "stop_memory" => integer 1876120
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7944
        "start_memory" => integer 1891240
        "stop_time" => float 1732268177.7949
        "stop_memory" => integer 1891808
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7949
        "start_memory" => integer 1894168
        "stop_time" => float 1732268177.7955
        "stop_memory" => integer 1894752
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7976
        "start_memory" => integer 1901680
        "stop_time" => float 1732268177.7986
        "stop_memory" => integer 1902240
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.7986
        "start_memory" => integer 1904600
        "stop_time" => float 1732268177.7997
        "stop_memory" => integer 1905184
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8012
        "start_memory" => integer 1911832
        "stop_time" => float 1732268177.8021
        "stop_memory" => integer 1912376
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8021
        "start_memory" => integer 1914736
        "stop_time" => float 1732268177.8031
        "stop_memory" => integer 1915312
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8035
        "start_memory" => integer 1917592
        "stop_time" => float 1732268177.8044
        "stop_memory" => integer 1918144
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8044
        "start_memory" => integer 1920488
        "stop_time" => float 1732268177.8054
        "stop_memory" => integer 1921064
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8062
        "start_memory" => integer 1927504
        "stop_time" => float 1732268177.807
        "stop_memory" => integer 1928056
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8071
        "start_memory" => integer 1930400
        "stop_time" => float 1732268177.8081
        "stop_memory" => integer 1932000
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8087
        "start_memory" => integer 1943088
        "stop_time" => float 1732268177.8096
        "stop_memory" => integer 1943656
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8097
        "start_memory" => integer 1946024
        "stop_time" => float 1732268177.8107
        "stop_memory" => integer 1946608
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8121
        "start_memory" => integer 1952960
        "stop_time" => float 1732268177.8131
        "stop_memory" => integer 1953504
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8131
        "start_memory" => integer 1955848
        "stop_time" => float 1732268177.8141
        "stop_memory" => integer 1956424
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8149
        "start_memory" => integer 1961312
        "stop_time" => float 1732268177.8159
        "stop_memory" => integer 1961896
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8159
        "start_memory" => integer 1964288
        "stop_time" => float 1732268177.8171
        "stop_memory" => integer 1964880
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8175
        "start_memory" => integer 1979480
        "stop_time" => float 1732268177.8186
        "stop_memory" => integer 1980048
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8187
        "start_memory" => integer 1982464
        "stop_time" => float 1732268177.8199
        "stop_memory" => integer 1983056
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8204
        "start_memory" => integer 1997336
        "stop_time" => float 1732268177.8216
        "stop_memory" => integer 1997904
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8216
        "start_memory" => integer 2000320
        "stop_time" => float 1732268177.8228
        "stop_memory" => integer 2000912
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8232
        "start_memory" => integer 2015168
        "stop_time" => float 1732268177.8244
        "stop_memory" => integer 2015736
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8245
        "start_memory" => integer 2018152
        "stop_time" => float 1732268177.8259
        "stop_memory" => integer 2018744
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8264
        "start_memory" => integer 2033016
        "stop_time" => float 1732268177.8275
        "stop_memory" => integer 2033584
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8275
        "start_memory" => integer 2036000
        "stop_time" => float 1732268177.8287
        "stop_memory" => integer 2036592
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8291
        "start_memory" => integer 2050848
        "stop_time" => float 1732268177.8303
        "stop_memory" => integer 2051416
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8303
        "start_memory" => integer 2053832
        "stop_time" => float 1732268177.8316
        "stop_memory" => integer 2054424
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.832
        "start_memory" => integer 2068680
        "stop_time" => float 1732268177.8332
        "stop_memory" => integer 2069248
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8332
        "start_memory" => integer 2071664
        "stop_time" => float 1732268177.8344
        "stop_memory" => integer 2072256
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8348
        "start_memory" => integer 2086528
        "stop_time" => float 1732268177.8359
        "stop_memory" => integer 2087096
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8359
        "start_memory" => integer 2089512
        "stop_time" => float 1732268177.8372
        "stop_memory" => integer 2090104
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8375
        "start_memory" => integer 2104360
        "stop_time" => float 1732268177.8386
        "stop_memory" => integer 2104928
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8387
        "start_memory" => integer 2107344
        "stop_time" => float 1732268177.8403
        "stop_memory" => integer 2107936
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8408
        "start_memory" => integer 2122288
        "stop_time" => float 1732268177.8419
        "stop_memory" => integer 2122856
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8419
        "start_memory" => integer 2125272
        "stop_time" => float 1732268177.8431
        "stop_memory" => integer 2125864
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8435
        "start_memory" => integer 2140120
        "stop_time" => float 1732268177.8446
        "stop_memory" => integer 2140688
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8447
        "start_memory" => integer 2143104
        "stop_time" => float 1732268177.8463
        "stop_memory" => integer 2143696
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8468
        "start_memory" => integer 2157952
        "stop_time" => float 1732268177.848
        "stop_memory" => integer 2158520
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.848
        "start_memory" => integer 2160936
        "stop_time" => float 1732268177.8492
        "stop_memory" => integer 2161528
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8497
        "start_memory" => integer 2175768
        "stop_time" => float 1732268177.8508
        "stop_memory" => integer 2176336
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8508
        "start_memory" => integer 2178752
        "stop_time" => float 1732268177.852
        "stop_memory" => integer 2179344
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8524
        "start_memory" => integer 2193600
        "stop_time" => float 1732268177.8535
        "stop_memory" => integer 2194168
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8536
        "start_memory" => integer 2196584
        "stop_time" => float 1732268177.8548
        "stop_memory" => integer 2197176
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8552
        "start_memory" => integer 2211448
        "stop_time" => float 1732268177.8563
        "stop_memory" => integer 2212016
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8563
        "start_memory" => integer 2214432
        "stop_time" => float 1732268177.8575
        "stop_memory" => integer 2215024
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.858
        "start_memory" => integer 2229312
        "stop_time" => float 1732268177.8591
        "stop_memory" => integer 2229880
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8591
        "start_memory" => integer 2232296
        "stop_time" => float 1732268177.8604
        "stop_memory" => integer 2232888
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8608
        "start_memory" => integer 2247160
        "stop_time" => float 1732268177.8619
        "stop_memory" => integer 2247728
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8619
        "start_memory" => integer 2250144
        "stop_time" => float 1732268177.8631
        "stop_memory" => integer 2250736
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8636
        "start_memory" => integer 2265136
        "stop_time" => float 1732268177.8646
        "stop_memory" => integer 2265704
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8647
        "start_memory" => integer 2268120
        "stop_time" => float 1732268177.8659
        "stop_memory" => integer 2268712
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8664
        "start_memory" => integer 2283000
        "stop_time" => float 1732268177.8675
        "stop_memory" => integer 2283568
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8675
        "start_memory" => integer 2285984
        "stop_time" => float 1732268177.8687
        "stop_memory" => integer 2286576
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8691
        "start_memory" => integer 2300848
        "stop_time" => float 1732268177.8703
        "stop_memory" => integer 2301416
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8703
        "start_memory" => integer 2303832
        "stop_time" => float 1732268177.8716
        "stop_memory" => integer 2304424
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.872
        "start_memory" => integer 2318696
        "stop_time" => float 1732268177.8731
        "stop_memory" => integer 2319264
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8731
        "start_memory" => integer 2321680
        "stop_time" => float 1732268177.8744
        "stop_memory" => integer 2322272
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8748
        "start_memory" => integer 2336528
        "stop_time" => float 1732268177.8759
        "stop_memory" => integer 2337096
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.876
        "start_memory" => integer 2339512
        "stop_time" => float 1732268177.8772
        "stop_memory" => integer 2340104
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8776
        "start_memory" => integer 2354360
        "stop_time" => float 1732268177.8787
        "stop_memory" => integer 2354928
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8787
        "start_memory" => integer 2357344
        "stop_time" => float 1732268177.8799
        "stop_memory" => integer 2357936
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8803
        "start_memory" => integer 2372208
        "stop_time" => float 1732268177.8815
        "stop_memory" => integer 2372776
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8815
        "start_memory" => integer 2375192
        "stop_time" => float 1732268177.8827
        "stop_memory" => integer 2375784
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8831
        "start_memory" => integer 2390040
        "stop_time" => float 1732268177.8842
        "stop_memory" => integer 2390608
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8842
        "start_memory" => integer 2393024
        "stop_time" => float 1732268177.8859
        "stop_memory" => integer 2393616
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8869
        "start_memory" => integer 2408112
        "stop_time" => float 1732268177.888
        "stop_memory" => integer 2408680
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.888
        "start_memory" => integer 2411096
        "stop_time" => float 1732268177.8893
        "stop_memory" => integer 2411688
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8906
        "start_memory" => integer 2420808
        "stop_time" => float 1732268177.8912
        "stop_memory" => integer 2421360
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8913
        "start_memory" => integer 2423720
        "stop_time" => float 1732268177.892
        "stop_memory" => integer 2424304
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8924
        "start_memory" => integer 2448240
        "stop_time" => float 1732268177.893
        "stop_memory" => integer 2448816
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8931
        "start_memory" => integer 2451192
        "stop_time" => float 1732268177.8938
        "stop_memory" => integer 2451784
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8944
        "start_memory" => integer 2479496
        "stop_time" => float 1732268177.8955
        "stop_memory" => integer 2480048
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8956
        "start_memory" => integer 2482448
        "stop_time" => float 1732268177.8966
        "stop_memory" => integer 2483032
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8977
        "start_memory" => integer 2491848
        "stop_time" => float 1732268177.8986
        "stop_memory" => integer 2492440
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8986
        "start_memory" => integer 2494848
        "stop_time" => float 1732268177.8996
        "stop_memory" => integer 2495448
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.8999
        "start_memory" => integer 2506712
        "stop_time" => float 1732268177.9009
        "stop_memory" => integer 2507304
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.901
        "start_memory" => integer 2509736
        "stop_time" => float 1732268177.9021
        "stop_memory" => integer 2510328
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9028
        "start_memory" => integer 2523592
        "stop_time" => float 1732268177.9037
        "stop_memory" => integer 2524168
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9038
        "start_memory" => integer 2526584
        "stop_time" => float 1732268177.9048
        "stop_memory" => integer 2527184
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9058
        "start_memory" => integer 2537864
        "stop_time" => float 1732268177.9062
        "stop_memory" => integer 2538456
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9079
        "start_memory" => integer 2547832
        "stop_time" => float 1732268177.9091
        "stop_memory" => integer 2548408
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9092
        "start_memory" => integer 2556752
        "stop_time" => float 1732268177.9104
        "stop_memory" => integer 2557336
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9113
        "start_memory" => integer 2566416
        "stop_time" => float 1732268177.9124
        "stop_memory" => integer 2566968
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9124
        "start_memory" => integer 2569352
        "stop_time" => float 1732268177.9135
        "stop_memory" => integer 2569936
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9139
        "start_memory" => integer 2572944
        "stop_time" => float 1732268177.9149
        "stop_memory" => integer 2573504
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9149
        "start_memory" => integer 2575888
        "stop_time" => float 1732268177.9161
        "stop_memory" => integer 2576472
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9164
        "start_memory" => integer 2579480
        "stop_time" => float 1732268177.9174
        "stop_memory" => integer 2580040
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9174
        "start_memory" => integer 2582424
        "stop_time" => float 1732268177.9186
        "stop_memory" => integer 2583008
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9191
        "start_memory" => integer 2589424
        "stop_time" => float 1732268177.92
        "stop_memory" => integer 2589984
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.92
        "start_memory" => integer 2592344
        "stop_time" => float 1732268177.9211
        "stop_memory" => integer 2592912
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9215
        "start_memory" => integer 2594840
        "stop_time" => float 1732268177.9224
        "stop_memory" => integer 2595424
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9224
        "start_memory" => integer 2599328
        "stop_time" => float 1732268177.9231
        "stop_memory" => integer 2599888
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9231
        "start_memory" => integer 2602264
        "stop_time" => float 1732268177.9239
        "stop_memory" => integer 2602848
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9244
        "start_memory" => integer 2686312
        "stop_time" => float 1732268177.9253
        "stop_memory" => integer 2686888
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9256
        "start_memory" => integer 2719384
        "stop_time" => float 1732268177.9265
        "stop_memory" => integer 2719976
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9268
        "start_memory" => integer 2747744
        "stop_time" => float 1732268177.9274
        "stop_memory" => integer 2748328
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9274
        "start_memory" => integer 2750728
        "stop_time" => float 1732268177.9281
        "stop_memory" => integer 2751328
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9284
        "start_memory" => integer 2754496
        "stop_time" => float 1732268177.9293
        "stop_memory" => integer 2755056
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9296
        "start_memory" => integer 2781096
        "stop_time" => float 1732268177.9304
        "stop_memory" => integer 2781672
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9312
        "start_memory" => integer 2810672
        "stop_time" => float 1732268177.9321
        "stop_memory" => integer 2811264
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9326
        "start_memory" => integer 2837944
        "stop_time" => float 1732268177.9336
        "stop_memory" => integer 2838480
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9336
        "start_memory" => integer 2840832
        "stop_time" => float 1732268177.9348
        "stop_memory" => integer 2841408
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9364
        "start_memory" => integer 2853288
        "stop_time" => float 1732268177.9375
        "stop_memory" => integer 2853904
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9376
        "start_memory" => integer 2856560
        "stop_time" => float 1732268177.9395
        "stop_memory" => integer 2857152
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9417
        "start_memory" => integer 2876704
        "stop_time" => float 1732268177.9429
        "stop_memory" => integer 2877280
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.943
        "start_memory" => integer 2879712
        "stop_time" => float 1732268177.9445
        "stop_memory" => integer 2880312
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9475
        "start_memory" => integer 2896568
        "stop_time" => float 1732268177.9484
        "stop_memory" => integer 2897112
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9484
        "start_memory" => integer 2899480
        "stop_time" => float 1732268177.9495
        "stop_memory" => integer 2900064
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9498
        "start_memory" => integer 2904496
        "stop_time" => float 1732268177.9509
        "stop_memory" => integer 2905056
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9509
        "start_memory" => integer 2907416
        "stop_time" => float 1732268177.952
        "stop_memory" => integer 2908000
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9524
        "start_memory" => integer 2927008
        "stop_time" => float 1732268177.9535
        "stop_memory" => integer 2927584
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9536
        "start_memory" => integer 2929976
        "stop_time" => float 1732268177.9547
        "stop_memory" => integer 2930568
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9551
        "start_memory" => integer 2948768
        "stop_time" => float 1732268177.9558
        "stop_memory" => integer 2949352
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9558
        "start_memory" => integer 2951760
        "stop_time" => float 1732268177.9564
        "stop_memory" => integer 2952360
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9571
        "start_memory" => integer 2974880
        "stop_time" => float 1732268177.9583
        "stop_memory" => integer 2975440
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9584
        "start_memory" => integer 2977856
        "stop_time" => float 1732268177.9599
        "stop_memory" => integer 2978448
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9605
        "start_memory" => integer 2996592
        "stop_time" => float 1732268177.9617
        "stop_memory" => integer 2997128
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9618
        "start_memory" => integer 2999472
        "stop_time" => float 1732268177.963
        "stop_memory" => integer 3000048
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9635
        "start_memory" => integer 3019216
        "stop_time" => float 1732268177.9651
        "stop_memory" => integer 3019784
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9651
        "start_memory" => integer 3022160
        "stop_time" => float 1732268177.9662
        "stop_memory" => integer 3022744
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9695
        "start_memory" => integer 3029120
        "stop_time" => float 1732268177.9705
        "stop_memory" => integer 3029680
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9706
        "start_memory" => integer 3032040
        "stop_time" => float 1732268177.9716
        "stop_memory" => integer 3032608
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.972
        "start_memory" => integer 3050048
        "stop_time" => float 1732268177.9729
        "stop_memory" => integer 3050616
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9729
        "start_memory" => integer 3053000
        "stop_time" => float 1732268177.9741
        "stop_memory" => integer 3053584
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9746
        "start_memory" => integer 3082232
        "stop_time" => float 1732268177.9757
        "stop_memory" => integer 3082808
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9757
        "start_memory" => integer 3085232
        "stop_time" => float 1732268177.9769
        "stop_memory" => integer 3085824
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9776
        "start_memory" => integer 3103080
        "stop_time" => float 1732268177.9785
        "stop_memory" => integer 3103664
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9787
        "start_memory" => integer 3069248
        "stop_time" => float 1732268177.9796
        "stop_memory" => integer 3071208
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.98
        "start_memory" => integer 3095416
        "stop_time" => float 1732268177.9809
        "stop_memory" => integer 3097080
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732268177.9809
        "start_memory" => integer 3096664
        "stop_time" => float 1732268177.9819
        "stop_memory" => integer 3098328
    )
)

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