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 1737579783.079
        "start_memory" => integer 581944
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0791
        "start_memory" => integer 584160
        "stop_time" => float 1737579783.0805
        "stop_memory" => integer 584824
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.081
        "start_memory" => integer 587248
        "stop_time" => float 1737579783.0826
        "stop_memory" => integer 587856
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0828
        "start_memory" => integer 596072
        "stop_time" => float 1737579783.0844
        "stop_memory" => integer 596624
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0845
        "start_memory" => integer 599040
        "stop_time" => float 1737579783.0862
        "stop_memory" => integer 599632
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0863
        "start_memory" => integer 603688
        "stop_time" => float 1737579783.0886
        "stop_memory" => integer 604240
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0886
        "start_memory" => integer 606624
        "stop_time" => float 1737579783.091
        "stop_memory" => integer 607208
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0912
        "start_memory" => integer 618480
        "stop_time" => float 1737579783.0953
        "stop_memory" => integer 619040
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0954
        "start_memory" => integer 621408
        "stop_time" => float 1737579783.0969
        "stop_memory" => integer 622056
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.097
        "start_memory" => integer 640936
        "stop_time" => float 1737579783.0983
        "stop_memory" => integer 641512
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.0986
        "start_memory" => integer 643904
        "stop_time" => float 1737579783.1004
        "stop_memory" => integer 644480
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1006
        "start_memory" => integer 658000
        "stop_time" => float 1737579783.102
        "stop_memory" => integer 658544
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.102
        "start_memory" => integer 660888
        "stop_time" => float 1737579783.1032
        "stop_memory" => integer 661464
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1033
        "start_memory" => integer 673840
        "stop_time" => float 1737579783.1044
        "stop_memory" => integer 674440
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1044
        "start_memory" => integer 675488
        "stop_time" => float 1737579783.1057
        "stop_memory" => integer 676024
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1058
        "start_memory" => integer 678376
        "stop_time" => float 1737579783.1076
        "stop_memory" => integer 678952
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1077
        "start_memory" => integer 682760
        "stop_time" => float 1737579783.109
        "stop_memory" => integer 683440
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1091
        "start_memory" => integer 685784
        "stop_time" => float 1737579783.1108
        "stop_memory" => integer 686360
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1109
        "start_memory" => integer 709944
        "stop_time" => float 1737579783.1122
        "stop_memory" => integer 710544
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1123
        "start_memory" => integer 712944
        "stop_time" => float 1737579783.1135
        "stop_memory" => integer 713544
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1136
        "start_memory" => integer 722696
        "stop_time" => float 1737579783.1151
        "stop_memory" => integer 723200
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1152
        "start_memory" => integer 723840
        "stop_time" => float 1737579783.1164
        "stop_memory" => integer 724416
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1167
        "start_memory" => integer 878240
        "stop_time" => float 1737579783.118
        "stop_memory" => integer 878824
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1181
        "start_memory" => integer 881224
        "stop_time" => float 1737579783.1198
        "stop_memory" => integer 881824
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1205
        "start_memory" => integer 882808
        "stop_time" => float 1737579783.1216
        "stop_memory" => integer 883384
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1216
        "start_memory" => integer 885784
        "stop_time" => float 1737579783.1269
        "stop_memory" => integer 886384
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1272
        "start_memory" => integer 892640
        "stop_time" => float 1737579783.1287
        "stop_memory" => integer 893200
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1288
        "start_memory" => integer 895568
        "stop_time" => float 1737579783.1304
        "stop_memory" => integer 896160
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1307
        "start_memory" => integer 919344
        "stop_time" => float 1737579783.1322
        "stop_memory" => integer 919880
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1323
        "start_memory" => integer 922224
        "stop_time" => float 1737579783.1336
        "stop_memory" => integer 922800
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579783.1344
        "start_memory" => integer 945192
        "stop_time" => float 1737579783.1359
        "stop_memory" => integer 945792
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7254
        "start_memory" => integer 986704
        "stop_time" => float 1737579785.7257
        "stop_memory" => integer 987280
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7257
        "start_memory" => integer 989632
        "stop_time" => float 1737579785.726
        "stop_memory" => integer 990472
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7265
        "start_memory" => integer 1002040
        "stop_time" => float 1737579785.7267
        "stop_memory" => integer 1002616
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7268
        "start_memory" => integer 1005008
        "stop_time" => float 1737579785.727
        "stop_memory" => integer 1005600
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7397
        "start_memory" => integer 1017448
        "stop_time" => float 1737579785.7406
        "stop_memory" => integer 1018016
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7406
        "start_memory" => integer 1020392
        "stop_time" => float 1737579785.7416
        "stop_memory" => integer 1020968
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7422
        "start_memory" => integer 1033112
        "stop_time" => float 1737579785.7427
        "stop_memory" => integer 1033704
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7428
        "start_memory" => integer 1039568
        "stop_time" => float 1737579785.7433
        "stop_memory" => integer 1040136
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7433
        "start_memory" => integer 1042528
        "stop_time" => float 1737579785.7559
        "stop_memory" => integer 1043120
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7563
        "start_memory" => integer 1051992
        "stop_time" => float 1737579785.7568
        "stop_memory" => integer 1052592
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7571
        "start_memory" => integer 1058912
        "stop_time" => float 1737579785.7577
        "stop_memory" => integer 1059488
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7579
        "start_memory" => integer 1064560
        "stop_time" => float 1737579785.7586
        "stop_memory" => integer 1065160
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7587
        "start_memory" => integer 1070648
        "stop_time" => float 1737579785.7592
        "stop_memory" => integer 1071224
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7593
        "start_memory" => integer 1079760
        "stop_time" => float 1737579785.7722
        "stop_memory" => integer 1080344
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7725
        "start_memory" => integer 1085728
        "stop_time" => float 1737579785.7732
        "stop_memory" => integer 1086312
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7734
        "start_memory" => integer 1093360
        "stop_time" => float 1737579785.7742
        "stop_memory" => integer 1093960
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7744
        "start_memory" => integer 1101152
        "stop_time" => float 1737579785.775
        "stop_memory" => integer 1101744
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7752
        "start_memory" => integer 1108232
        "stop_time" => float 1737579785.7881
        "stop_memory" => integer 1108824
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7884
        "start_memory" => integer 1114824
        "stop_time" => float 1737579785.7892
        "stop_memory" => integer 1115416
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7895
        "start_memory" => integer 1151712
        "stop_time" => float 1737579785.7903
        "stop_memory" => integer 1152288
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.7906
        "start_memory" => integer 1160328
        "stop_time" => float 1737579785.7913
        "stop_memory" => integer 1160928
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8037
        "start_memory" => integer 1168352
        "stop_time" => float 1737579785.8045
        "stop_memory" => integer 1168928
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8047
        "start_memory" => integer 1178296
        "stop_time" => float 1737579785.8054
        "stop_memory" => integer 1178880
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8056
        "start_memory" => integer 1187560
        "stop_time" => float 1737579785.806
        "stop_memory" => integer 1188112
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8061
        "start_memory" => integer 1190472
        "stop_time" => float 1737579785.8066
        "stop_memory" => integer 1191056
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8068
        "start_memory" => integer 1202936
        "stop_time" => float 1737579785.8203
        "stop_memory" => integer 1203496
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8204
        "start_memory" => integer 1205856
        "stop_time" => float 1737579785.8219
        "stop_memory" => integer 1206424
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8362
        "start_memory" => integer 1250056
        "stop_time" => float 1737579785.8376
        "stop_memory" => integer 1250640
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8722
        "start_memory" => integer 1251240
        "stop_time" => float 1737579785.8727
        "stop_memory" => integer 1251816
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8728
        "start_memory" => integer 1254224
        "stop_time" => float 1737579785.8734
        "stop_memory" => integer 1254816
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8897
        "start_memory" => integer 1266784
        "stop_time" => float 1737579785.8904
        "stop_memory" => integer 1267368
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.8905
        "start_memory" => integer 1269792
        "stop_time" => float 1737579785.891
        "stop_memory" => integer 1270392
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9071
        "start_memory" => integer 1282256
        "stop_time" => float 1737579785.9198
        "stop_memory" => integer 1282816
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9199
        "start_memory" => integer 1285208
        "stop_time" => float 1737579785.9206
        "stop_memory" => integer 1286312
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9207
        "start_memory" => integer 1296168
        "stop_time" => float 1737579785.9213
        "stop_memory" => integer 1296768
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9332
        "start_memory" => integer 1305432
        "stop_time" => float 1737579785.9336
        "stop_memory" => integer 1306008
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9336
        "start_memory" => integer 1308424
        "stop_time" => float 1737579785.9341
        "stop_memory" => integer 1309008
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9842
        "start_memory" => integer 1329016
        "stop_time" => float 1737579785.9852
        "stop_memory" => integer 1329600
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9853
        "start_memory" => integer 1332024
        "stop_time" => float 1737579785.9858
        "stop_memory" => integer 1332624
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9859
        "start_memory" => integer 1341504
        "stop_time" => float 1737579785.9866
        "stop_memory" => integer 1342080
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9872
        "start_memory" => integer 1349056
        "stop_time" => float 1737579785.9958
        "stop_memory" => integer 1349624
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9959
        "start_memory" => integer 1352008
        "stop_time" => float 1737579785.9965
        "stop_memory" => integer 1352600
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9971
        "start_memory" => integer 1365368
        "stop_time" => float 1737579785.9976
        "stop_memory" => integer 1365952
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579785.9976
        "start_memory" => integer 1368352
        "stop_time" => float 1737579785.9982
        "stop_memory" => integer 1368936
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0201
        "start_memory" => integer 1381168
        "stop_time" => float 1737579786.0206
        "stop_memory" => integer 1381736
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0207
        "start_memory" => integer 1384136
        "stop_time" => float 1737579786.0213
        "stop_memory" => integer 1384728
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0221
        "start_memory" => integer 1393544
        "stop_time" => float 1737579786.0355
        "stop_memory" => integer 1394080
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0356
        "start_memory" => integer 1396432
        "stop_time" => float 1737579786.0373
        "stop_memory" => integer 1397008
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0391
        "start_memory" => integer 1399680
        "stop_time" => float 1737579786.052
        "stop_memory" => integer 1400280
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0521
        "start_memory" => integer 1402688
        "stop_time" => float 1737579786.0531
        "stop_memory" => integer 1403288
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0621
        "start_memory" => integer 1427448
        "stop_time" => float 1737579786.0628
        "stop_memory" => integer 1428040
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0755
        "start_memory" => integer 1432704
        "stop_time" => float 1737579786.077
        "stop_memory" => integer 1433264
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0771
        "start_memory" => integer 1435664
        "stop_time" => float 1737579786.0789
        "stop_memory" => integer 1436256
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.0942
        "start_memory" => integer 1445904
        "stop_time" => float 1737579786.0944
        "stop_memory" => integer 1446488
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1085
        "start_memory" => integer 1450288
        "stop_time" => float 1737579786.1093
        "stop_memory" => integer 1450856
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1094
        "start_memory" => integer 1453232
        "stop_time" => float 1737579786.1103
        "stop_memory" => integer 1453824
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1243
        "start_memory" => integer 1499200
        "stop_time" => float 1737579786.1251
        "stop_memory" => integer 1499784
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1252
        "start_memory" => integer 1502224
        "stop_time" => float 1737579786.1261
        "stop_memory" => integer 1502824
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1266
        "start_memory" => integer 1517056
        "stop_time" => float 1737579786.1395
        "stop_memory" => integer 1517648
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1397
        "start_memory" => integer 1520080
        "stop_time" => float 1737579786.1407
        "stop_memory" => integer 1520672
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1422
        "start_memory" => integer 1524576
        "stop_time" => float 1737579786.1432
        "stop_memory" => integer 1525152
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1433
        "start_memory" => integer 1527568
        "stop_time" => float 1737579786.1563
        "stop_memory" => integer 1528168
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.157
        "start_memory" => integer 1572536
        "stop_time" => float 1737579786.1582
        "stop_memory" => integer 1573128
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1583
        "start_memory" => integer 1575560
        "stop_time" => float 1737579786.1593
        "stop_memory" => integer 1576168
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1756
        "start_memory" => integer 1580648
        "stop_time" => float 1737579786.1764
        "stop_memory" => integer 1581216
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1765
        "start_memory" => integer 1583624
        "stop_time" => float 1737579786.1774
        "stop_memory" => integer 1584224
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1783
        "start_memory" => integer 1611816
        "stop_time" => float 1737579786.1793
        "stop_memory" => integer 1612392
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1914
        "start_memory" => integer 1614800
        "stop_time" => float 1737579786.1925
        "stop_memory" => integer 1615400
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1932
        "start_memory" => integer 1636656
        "stop_time" => float 1737579786.1941
        "stop_memory" => integer 1637232
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.1941
        "start_memory" => integer 1639632
        "stop_time" => float 1737579786.195
        "stop_memory" => integer 1640232
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2079
        "start_memory" => integer 1652160
        "stop_time" => float 1737579786.2086
        "stop_memory" => integer 1652752
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2087
        "start_memory" => integer 1655192
        "stop_time" => float 1737579786.2096
        "stop_memory" => integer 1655800
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2104
        "start_memory" => integer 1671384
        "stop_time" => float 1737579786.2236
        "stop_memory" => integer 1671984
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2237
        "start_memory" => integer 1674472
        "stop_time" => float 1737579786.2245
        "stop_memory" => integer 1675088
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2246
        "start_memory" => integer 1679648
        "stop_time" => float 1737579786.2254
        "stop_memory" => integer 1680240
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2255
        "start_memory" => integer 1682704
        "stop_time" => float 1737579786.2264
        "stop_memory" => integer 1683320
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2272
        "start_memory" => integer 1728888
        "stop_time" => float 1737579786.2402
        "stop_memory" => integer 1729480
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2403
        "start_memory" => integer 1731968
        "stop_time" => float 1737579786.2411
        "stop_memory" => integer 1732584
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2418
        "start_memory" => integer 1752432
        "stop_time" => float 1737579786.243
        "stop_memory" => integer 1753024
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2431
        "start_memory" => integer 1755504
        "stop_time" => float 1737579786.2562
        "stop_memory" => integer 1756104
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.257
        "start_memory" => integer 1774640
        "stop_time" => float 1737579786.2579
        "stop_memory" => integer 1775240
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.258
        "start_memory" => integer 1777712
        "stop_time" => float 1737579786.2589
        "stop_memory" => integer 1778328
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2719
        "start_memory" => integer 1821072
        "stop_time" => float 1737579786.2727
        "stop_memory" => integer 1821664
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2728
        "start_memory" => integer 1824136
        "stop_time" => float 1737579786.2737
        "stop_memory" => integer 1824752
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2753
        "start_memory" => integer 1852640
        "stop_time" => float 1737579786.2883
        "stop_memory" => integer 1853216
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2884
        "start_memory" => integer 1855656
        "stop_time" => float 1737579786.2892
        "stop_memory" => integer 1856264
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.29
        "start_memory" => integer 1871880
        "stop_time" => float 1737579786.2912
        "stop_memory" => integer 1872400
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.2912
        "start_memory" => integer 1874760
        "stop_time" => float 1737579786.3046
        "stop_memory" => integer 1875336
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3053
        "start_memory" => integer 1890456
        "stop_time" => float 1737579786.306
        "stop_memory" => integer 1891024
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.306
        "start_memory" => integer 1893384
        "stop_time" => float 1737579786.3069
        "stop_memory" => integer 1893968
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3222
        "start_memory" => integer 1900896
        "stop_time" => float 1737579786.3357
        "stop_memory" => integer 1901456
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3358
        "start_memory" => integer 1903816
        "stop_time" => float 1737579786.3373
        "stop_memory" => integer 1904400
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3519
        "start_memory" => integer 1911048
        "stop_time" => float 1737579786.3529
        "stop_memory" => integer 1911592
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.353
        "start_memory" => integer 1913952
        "stop_time" => float 1737579786.3543
        "stop_memory" => integer 1914528
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3548
        "start_memory" => integer 1916808
        "stop_time" => float 1737579786.3682
        "stop_memory" => integer 1917360
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3683
        "start_memory" => integer 1919704
        "stop_time" => float 1737579786.37
        "stop_memory" => integer 1920280
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3706
        "start_memory" => integer 1926720
        "stop_time" => float 1737579786.384
        "stop_memory" => integer 1927272
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3841
        "start_memory" => integer 1929616
        "stop_time" => float 1737579786.3854
        "stop_memory" => integer 1931216
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3862
        "start_memory" => integer 1942304
        "stop_time" => float 1737579786.3872
        "stop_memory" => integer 1942872
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.3872
        "start_memory" => integer 1945240
        "stop_time" => float 1737579786.4005
        "stop_memory" => integer 1945824
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4019
        "start_memory" => integer 1952176
        "stop_time" => float 1737579786.403
        "stop_memory" => integer 1952720
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.403
        "start_memory" => integer 1955088
        "stop_time" => float 1737579786.4162
        "stop_memory" => integer 1955664
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.417
        "start_memory" => integer 1960552
        "stop_time" => float 1737579786.418
        "stop_memory" => integer 1961136
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4181
        "start_memory" => integer 1963528
        "stop_time" => float 1737579786.4315
        "stop_memory" => integer 1964120
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4323
        "start_memory" => integer 1978720
        "stop_time" => float 1737579786.4337
        "stop_memory" => integer 1979288
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4338
        "start_memory" => integer 1981704
        "stop_time" => float 1737579786.4468
        "stop_memory" => integer 1982296
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4517
        "start_memory" => integer 1996576
        "stop_time" => float 1737579786.453
        "stop_memory" => integer 1997144
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4531
        "start_memory" => integer 1999560
        "stop_time" => float 1737579786.4545
        "stop_memory" => integer 2000152
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4551
        "start_memory" => integer 2014408
        "stop_time" => float 1737579786.4686
        "stop_memory" => integer 2014976
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4687
        "start_memory" => integer 2017392
        "stop_time" => float 1737579786.4703
        "stop_memory" => integer 2017984
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.471
        "start_memory" => integer 2032256
        "stop_time" => float 1737579786.4846
        "stop_memory" => integer 2032824
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4847
        "start_memory" => integer 2035240
        "stop_time" => float 1737579786.4864
        "stop_memory" => integer 2035832
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4871
        "start_memory" => integer 2050088
        "stop_time" => float 1737579786.4965
        "stop_memory" => integer 2050656
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4966
        "start_memory" => integer 2053072
        "stop_time" => float 1737579786.4982
        "stop_memory" => integer 2053664
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.4989
        "start_memory" => integer 2067920
        "stop_time" => float 1737579786.5124
        "stop_memory" => integer 2068488
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5125
        "start_memory" => integer 2070904
        "stop_time" => float 1737579786.5142
        "stop_memory" => integer 2071496
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.515
        "start_memory" => integer 2085768
        "stop_time" => float 1737579786.5289
        "stop_memory" => integer 2086336
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.529
        "start_memory" => integer 2088752
        "stop_time" => float 1737579786.5306
        "stop_memory" => integer 2089344
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5313
        "start_memory" => integer 2103600
        "stop_time" => float 1737579786.5448
        "stop_memory" => integer 2104168
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5449
        "start_memory" => integer 2106584
        "stop_time" => float 1737579786.5463
        "stop_memory" => integer 2107176
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5469
        "start_memory" => integer 2121528
        "stop_time" => float 1737579786.5605
        "stop_memory" => integer 2122096
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5606
        "start_memory" => integer 2124512
        "stop_time" => float 1737579786.5626
        "stop_memory" => integer 2125104
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5632
        "start_memory" => integer 2139360
        "stop_time" => float 1737579786.5768
        "stop_memory" => integer 2139928
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5769
        "start_memory" => integer 2142344
        "stop_time" => float 1737579786.5784
        "stop_memory" => integer 2142936
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.579
        "start_memory" => integer 2157192
        "stop_time" => float 1737579786.5924
        "stop_memory" => integer 2157760
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5925
        "start_memory" => integer 2160176
        "stop_time" => float 1737579786.5941
        "stop_memory" => integer 2160768
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.5949
        "start_memory" => integer 2175008
        "stop_time" => float 1737579786.6082
        "stop_memory" => integer 2175576
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6083
        "start_memory" => integer 2177992
        "stop_time" => float 1737579786.6196
        "stop_memory" => integer 2178584
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6203
        "start_memory" => integer 2192840
        "stop_time" => float 1737579786.6218
        "stop_memory" => integer 2193408
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6218
        "start_memory" => integer 2195824
        "stop_time" => float 1737579786.6357
        "stop_memory" => integer 2196416
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6363
        "start_memory" => integer 2210688
        "stop_time" => float 1737579786.6379
        "stop_memory" => integer 2211256
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6379
        "start_memory" => integer 2213672
        "stop_time" => float 1737579786.6516
        "stop_memory" => integer 2214264
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6524
        "start_memory" => integer 2228576
        "stop_time" => float 1737579786.654
        "stop_memory" => integer 2229144
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6541
        "start_memory" => integer 2231560
        "stop_time" => float 1737579786.6637
        "stop_memory" => integer 2232152
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6644
        "start_memory" => integer 2246424
        "stop_time" => float 1737579786.6657
        "stop_memory" => integer 2246992
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6658
        "start_memory" => integer 2249408
        "stop_time" => float 1737579786.6671
        "stop_memory" => integer 2250000
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6799
        "start_memory" => integer 2264400
        "stop_time" => float 1737579786.6814
        "stop_memory" => integer 2264968
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6815
        "start_memory" => integer 2267384
        "stop_time" => float 1737579786.6833
        "stop_memory" => integer 2267976
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.696
        "start_memory" => integer 2282264
        "stop_time" => float 1737579786.6972
        "stop_memory" => integer 2282832
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6973
        "start_memory" => integer 2285248
        "stop_time" => float 1737579786.6986
        "stop_memory" => integer 2285840
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.6993
        "start_memory" => integer 2300112
        "stop_time" => float 1737579786.7129
        "stop_memory" => integer 2300680
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.713
        "start_memory" => integer 2303096
        "stop_time" => float 1737579786.7143
        "stop_memory" => integer 2303688
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.715
        "start_memory" => integer 2317960
        "stop_time" => float 1737579786.7287
        "stop_memory" => integer 2318528
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7287
        "start_memory" => integer 2320944
        "stop_time" => float 1737579786.7302
        "stop_memory" => integer 2321536
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7308
        "start_memory" => integer 2335792
        "stop_time" => float 1737579786.7443
        "stop_memory" => integer 2336360
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7443
        "start_memory" => integer 2338776
        "stop_time" => float 1737579786.7459
        "stop_memory" => integer 2339368
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7465
        "start_memory" => integer 2353624
        "stop_time" => float 1737579786.7585
        "stop_memory" => integer 2354192
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7586
        "start_memory" => integer 2356608
        "stop_time" => float 1737579786.7686
        "stop_memory" => integer 2357200
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7693
        "start_memory" => integer 2371472
        "stop_time" => float 1737579786.7705
        "stop_memory" => integer 2372040
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7706
        "start_memory" => integer 2374456
        "stop_time" => float 1737579786.7763
        "stop_memory" => integer 2375048
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7769
        "start_memory" => integer 2389304
        "stop_time" => float 1737579786.7783
        "stop_memory" => integer 2389872
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7783
        "start_memory" => integer 2392288
        "stop_time" => float 1737579786.7921
        "stop_memory" => integer 2392880
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.7938
        "start_memory" => integer 2407376
        "stop_time" => float 1737579786.7953
        "stop_memory" => integer 2407944
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8075
        "start_memory" => integer 2410360
        "stop_time" => float 1737579786.8095
        "stop_memory" => integer 2410952
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.824
        "start_memory" => integer 2420072
        "stop_time" => float 1737579786.8249
        "stop_memory" => integer 2420624
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.825
        "start_memory" => integer 2422984
        "stop_time" => float 1737579786.8261
        "stop_memory" => integer 2423568
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8269
        "start_memory" => integer 2447504
        "stop_time" => float 1737579786.84
        "stop_memory" => integer 2448080
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8401
        "start_memory" => integer 2450456
        "stop_time" => float 1737579786.8412
        "stop_memory" => integer 2451048
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.842
        "start_memory" => integer 2478760
        "stop_time" => float 1737579786.8432
        "stop_memory" => integer 2479312
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8432
        "start_memory" => integer 2481712
        "stop_time" => float 1737579786.8567
        "stop_memory" => integer 2482296
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8581
        "start_memory" => integer 2491112
        "stop_time" => float 1737579786.8591
        "stop_memory" => integer 2491704
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8591
        "start_memory" => integer 2494112
        "stop_time" => float 1737579786.8726
        "stop_memory" => integer 2494712
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8733
        "start_memory" => integer 2505976
        "stop_time" => float 1737579786.8746
        "stop_memory" => integer 2506568
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8746
        "start_memory" => integer 2509000
        "stop_time" => float 1737579786.8881
        "stop_memory" => integer 2509592
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.889
        "start_memory" => integer 2522856
        "stop_time" => float 1737579786.8899
        "stop_memory" => integer 2523432
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.8899
        "start_memory" => integer 2525848
        "stop_time" => float 1737579786.9034
        "stop_memory" => integer 2526448
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9052
        "start_memory" => integer 2537128
        "stop_time" => float 1737579786.9058
        "stop_memory" => integer 2537720
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9211
        "start_memory" => integer 2547096
        "stop_time" => float 1737579786.9227
        "stop_memory" => integer 2547672
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.923
        "start_memory" => integer 2556016
        "stop_time" => float 1737579786.9366
        "stop_memory" => integer 2556600
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.938
        "start_memory" => integer 2565680
        "stop_time" => float 1737579786.9393
        "stop_memory" => integer 2566232
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9515
        "start_memory" => integer 2568616
        "stop_time" => float 1737579786.953
        "stop_memory" => integer 2569200
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9536
        "start_memory" => integer 2572208
        "stop_time" => float 1737579786.9551
        "stop_memory" => integer 2572768
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9552
        "start_memory" => integer 2575152
        "stop_time" => float 1737579786.9692
        "stop_memory" => integer 2575736
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9699
        "start_memory" => integer 2578744
        "stop_time" => float 1737579786.9837
        "stop_memory" => integer 2579304
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9838
        "start_memory" => integer 2581688
        "stop_time" => float 1737579786.9856
        "stop_memory" => integer 2582272
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9865
        "start_memory" => integer 2588688
        "stop_time" => float 1737579786.9997
        "stop_memory" => integer 2589248
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579786.9998
        "start_memory" => integer 2591608
        "stop_time" => float 1737579787.0011
        "stop_memory" => integer 2592176
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0016
        "start_memory" => integer 2594104
        "stop_time" => float 1737579787.0027
        "stop_memory" => integer 2594688
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0028
        "start_memory" => integer 2598592
        "stop_time" => float 1737579787.0159
        "stop_memory" => integer 2599152
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.016
        "start_memory" => integer 2601528
        "stop_time" => float 1737579787.0169
        "stop_memory" => integer 2602112
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0176
        "start_memory" => integer 2685576
        "stop_time" => float 1737579787.019
        "stop_memory" => integer 2686152
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0318
        "start_memory" => integer 2718648
        "stop_time" => float 1737579787.033
        "stop_memory" => integer 2719240
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0335
        "start_memory" => integer 2747008
        "stop_time" => float 1737579787.0341
        "stop_memory" => integer 2747592
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0342
        "start_memory" => integer 2749992
        "stop_time" => float 1737579787.0351
        "stop_memory" => integer 2750592
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0478
        "start_memory" => integer 2753760
        "stop_time" => float 1737579787.0488
        "stop_memory" => integer 2754320
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0493
        "start_memory" => integer 2780360
        "stop_time" => float 1737579787.0503
        "stop_memory" => integer 2780936
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0507
        "start_memory" => integer 2809936
        "stop_time" => float 1737579787.0678
        "stop_memory" => integer 2810528
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0683
        "start_memory" => integer 2837208
        "stop_time" => float 1737579787.0696
        "stop_memory" => integer 2837744
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0697
        "start_memory" => integer 2840096
        "stop_time" => float 1737579787.071
        "stop_memory" => integer 2840672
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0851
        "start_memory" => integer 2852552
        "stop_time" => float 1737579787.0863
        "stop_memory" => integer 2853168
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.0865
        "start_memory" => integer 2855824
        "stop_time" => float 1737579787.1
        "stop_memory" => integer 2856416
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.102
        "start_memory" => integer 2875968
        "stop_time" => float 1737579787.1157
        "stop_memory" => integer 2876544
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1159
        "start_memory" => integer 2878976
        "stop_time" => float 1737579787.1173
        "stop_memory" => integer 2879576
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1307
        "start_memory" => integer 2895832
        "stop_time" => float 1737579787.1317
        "stop_memory" => integer 2896376
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1318
        "start_memory" => integer 2898744
        "stop_time" => float 1737579787.133
        "stop_memory" => integer 2899328
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1335
        "start_memory" => integer 2903760
        "stop_time" => float 1737579787.1345
        "stop_memory" => integer 2904320
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1346
        "start_memory" => integer 2906680
        "stop_time" => float 1737579787.16
        "stop_memory" => integer 2907264
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1606
        "start_memory" => integer 2926272
        "stop_time" => float 1737579787.1617
        "stop_memory" => integer 2926848
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1618
        "start_memory" => integer 2929240
        "stop_time" => float 1737579787.1631
        "stop_memory" => integer 2929832
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1757
        "start_memory" => integer 2948032
        "stop_time" => float 1737579787.1764
        "stop_memory" => integer 2948616
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1764
        "start_memory" => integer 2951024
        "stop_time" => float 1737579787.1772
        "stop_memory" => integer 2951624
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1783
        "start_memory" => integer 2974144
        "stop_time" => float 1737579787.1918
        "stop_memory" => integer 2974704
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1919
        "start_memory" => integer 2977120
        "stop_time" => float 1737579787.1931
        "stop_memory" => integer 2977712
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1938
        "start_memory" => integer 2995856
        "stop_time" => float 1737579787.1948
        "stop_memory" => integer 2996392
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.1948
        "start_memory" => integer 2998736
        "stop_time" => float 1737579787.2054
        "stop_memory" => integer 2999312
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2064
        "start_memory" => integer 3018504
        "stop_time" => float 1737579787.2116
        "stop_memory" => integer 3019072
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2117
        "start_memory" => integer 3021432
        "stop_time" => float 1737579787.2128
        "stop_memory" => integer 3022016
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.228
        "start_memory" => integer 3028424
        "stop_time" => float 1737579787.229
        "stop_memory" => integer 3028984
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2291
        "start_memory" => integer 3031344
        "stop_time" => float 1737579787.2303
        "stop_memory" => integer 3031912
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2309
        "start_memory" => integer 3049352
        "stop_time" => float 1737579787.244
        "stop_memory" => integer 3049920
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2441
        "start_memory" => integer 3052304
        "stop_time" => float 1737579787.2453
        "stop_memory" => integer 3052888
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2458
        "start_memory" => integer 3081536
        "stop_time" => float 1737579787.247
        "stop_memory" => integer 3082112
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.247
        "start_memory" => integer 3084536
        "stop_time" => float 1737579787.2604
        "stop_memory" => integer 3085128
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2612
        "start_memory" => integer 3102384
        "stop_time" => float 1737579787.2623
        "stop_memory" => integer 3102968
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.2626
        "start_memory" => integer 3068552
        "stop_time" => float 1737579787.2757
        "stop_memory" => integer 3070512
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.276
        "start_memory" => integer 3094720
        "stop_time" => float 1737579787.277
        "stop_memory" => integer 3096384
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737579787.277
        "start_memory" => integer 3095968
        "stop_time" => float 1737579787.2781
        "stop_memory" => integer 3097632
    )
)

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