Modules

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/kohana/profiler.php on line 14.

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(27) ""guide/api/Kohana_Profiler""
        "start_time" => float 1732240920.595
        "start_memory" => integer 581992
        "stop_time" => bool FALSE
        "stop_memory" => bool FALSE
    )
    "kp/1" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.595
        "start_memory" => integer 584200
        "stop_time" => float 1732240920.5973
        "stop_memory" => integer 584864
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.5974
        "start_memory" => integer 587288
        "stop_time" => float 1732240920.599
        "stop_memory" => integer 587896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.5991
        "start_memory" => integer 596112
        "stop_time" => float 1732240920.6012
        "stop_memory" => integer 596664
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6013
        "start_memory" => integer 599080
        "stop_time" => float 1732240920.6155
        "stop_memory" => integer 599672
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6156
        "start_memory" => integer 603728
        "stop_time" => float 1732240920.6173
        "stop_memory" => integer 604280
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6174
        "start_memory" => integer 606664
        "stop_time" => float 1732240920.619
        "stop_memory" => integer 607248
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6191
        "start_memory" => integer 618520
        "stop_time" => float 1732240920.6206
        "stop_memory" => integer 619080
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6207
        "start_memory" => integer 621448
        "stop_time" => float 1732240920.6223
        "stop_memory" => integer 622096
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6224
        "start_memory" => integer 640976
        "stop_time" => float 1732240920.624
        "stop_memory" => integer 641552
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6241
        "start_memory" => integer 643944
        "stop_time" => float 1732240920.6259
        "stop_memory" => integer 644520
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.626
        "start_memory" => integer 658040
        "stop_time" => float 1732240920.6277
        "stop_memory" => integer 658584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6278
        "start_memory" => integer 660928
        "stop_time" => float 1732240920.6294
        "stop_memory" => integer 661504
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6296
        "start_memory" => integer 673880
        "stop_time" => float 1732240920.631
        "stop_memory" => integer 674480
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.631
        "start_memory" => integer 675528
        "stop_time" => float 1732240920.6325
        "stop_memory" => integer 676064
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6326
        "start_memory" => integer 678416
        "stop_time" => float 1732240920.6343
        "stop_memory" => integer 678992
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6344
        "start_memory" => integer 682800
        "stop_time" => float 1732240920.6359
        "stop_memory" => integer 683480
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6359
        "start_memory" => integer 685824
        "stop_time" => float 1732240920.6378
        "stop_memory" => integer 686400
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.638
        "start_memory" => integer 709984
        "stop_time" => float 1732240920.6395
        "stop_memory" => integer 710584
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6395
        "start_memory" => integer 712984
        "stop_time" => float 1732240920.6412
        "stop_memory" => integer 713584
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6413
        "start_memory" => integer 722736
        "stop_time" => float 1732240920.6428
        "stop_memory" => integer 723240
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6429
        "start_memory" => integer 723880
        "stop_time" => float 1732240920.6443
        "stop_memory" => integer 724456
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6446
        "start_memory" => integer 878288
        "stop_time" => float 1732240920.6461
        "stop_memory" => integer 878872
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6462
        "start_memory" => integer 881272
        "stop_time" => float 1732240920.6478
        "stop_memory" => integer 881872
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.648
        "start_memory" => integer 882856
        "stop_time" => float 1732240920.6494
        "stop_memory" => integer 883432
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6495
        "start_memory" => integer 885832
        "stop_time" => float 1732240920.6512
        "stop_memory" => integer 886432
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6513
        "start_memory" => integer 892688
        "stop_time" => float 1732240920.6526
        "stop_memory" => integer 893248
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6527
        "start_memory" => integer 895616
        "stop_time" => float 1732240920.6542
        "stop_memory" => integer 896208
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6544
        "start_memory" => integer 919144
        "stop_time" => float 1732240920.6561
        "stop_memory" => integer 919680
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6562
        "start_memory" => integer 922024
        "stop_time" => float 1732240920.6579
        "stop_memory" => integer 922600
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240920.6592
        "start_memory" => integer 945240
        "stop_time" => float 1732240920.6608
        "stop_memory" => integer 945840
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6667
        "start_memory" => integer 986752
        "stop_time" => float 1732240921.6671
        "stop_memory" => integer 987328
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6671
        "start_memory" => integer 989680
        "stop_time" => float 1732240921.6675
        "stop_memory" => integer 990520
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6683
        "start_memory" => integer 1002088
        "stop_time" => float 1732240921.6687
        "stop_memory" => integer 1002664
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6687
        "start_memory" => integer 1005056
        "stop_time" => float 1732240921.6691
        "stop_memory" => integer 1005648
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6699
        "start_memory" => integer 1017496
        "stop_time" => float 1732240921.671
        "stop_memory" => integer 1018064
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6711
        "start_memory" => integer 1020440
        "stop_time" => float 1732240921.6723
        "stop_memory" => integer 1021016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6728
        "start_memory" => integer 1033160
        "stop_time" => float 1732240921.6736
        "stop_memory" => integer 1033752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6737
        "start_memory" => integer 1039616
        "stop_time" => float 1732240921.6742
        "stop_memory" => integer 1040184
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6743
        "start_memory" => integer 1042576
        "stop_time" => float 1732240921.6749
        "stop_memory" => integer 1043168
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6751
        "start_memory" => integer 1052040
        "stop_time" => float 1732240921.6762
        "stop_memory" => integer 1052640
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6765
        "start_memory" => integer 1058960
        "stop_time" => float 1732240921.6769
        "stop_memory" => integer 1059536
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6771
        "start_memory" => integer 1064608
        "stop_time" => float 1732240921.6777
        "stop_memory" => integer 1065208
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6779
        "start_memory" => integer 1070696
        "stop_time" => float 1732240921.6785
        "stop_memory" => integer 1071272
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6786
        "start_memory" => integer 1079808
        "stop_time" => float 1732240921.6792
        "stop_memory" => integer 1080392
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6794
        "start_memory" => integer 1085776
        "stop_time" => float 1732240921.68
        "stop_memory" => integer 1086360
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6802
        "start_memory" => integer 1093408
        "stop_time" => float 1732240921.6809
        "stop_memory" => integer 1094008
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6811
        "start_memory" => integer 1101200
        "stop_time" => float 1732240921.6818
        "stop_memory" => integer 1101792
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.682
        "start_memory" => integer 1108280
        "stop_time" => float 1732240921.6826
        "stop_memory" => integer 1108872
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6828
        "start_memory" => integer 1114872
        "stop_time" => float 1732240921.6835
        "stop_memory" => integer 1115464
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6837
        "start_memory" => integer 1151760
        "stop_time" => float 1732240921.6844
        "stop_memory" => integer 1152336
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6845
        "start_memory" => integer 1160376
        "stop_time" => float 1732240921.6851
        "stop_memory" => integer 1160976
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6853
        "start_memory" => integer 1168400
        "stop_time" => float 1732240921.6859
        "stop_memory" => integer 1168976
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6861
        "start_memory" => integer 1178344
        "stop_time" => float 1732240921.6869
        "stop_memory" => integer 1178928
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.687
        "start_memory" => integer 1187608
        "stop_time" => float 1732240921.6876
        "stop_memory" => integer 1188160
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6876
        "start_memory" => integer 1190520
        "stop_time" => float 1732240921.6881
        "stop_memory" => integer 1191104
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6883
        "start_memory" => integer 1202984
        "stop_time" => float 1732240921.6897
        "stop_memory" => integer 1203544
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6897
        "start_memory" => integer 1205904
        "stop_time" => float 1732240921.691
        "stop_memory" => integer 1206472
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.6929
        "start_memory" => integer 1250104
        "stop_time" => float 1732240921.6942
        "stop_memory" => integer 1250688
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7
        "start_memory" => integer 1251288
        "stop_time" => float 1732240921.7006
        "stop_memory" => integer 1251864
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7006
        "start_memory" => integer 1254272
        "stop_time" => float 1732240921.7013
        "stop_memory" => integer 1254864
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7047
        "start_memory" => integer 1266832
        "stop_time" => float 1732240921.7053
        "stop_memory" => integer 1267416
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7053
        "start_memory" => integer 1269840
        "stop_time" => float 1732240921.7058
        "stop_memory" => integer 1270440
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7095
        "start_memory" => integer 1282304
        "stop_time" => float 1732240921.7102
        "stop_memory" => integer 1282864
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7102
        "start_memory" => integer 1285256
        "stop_time" => float 1732240921.7107
        "stop_memory" => integer 1286360
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7107
        "start_memory" => integer 1296216
        "stop_time" => float 1732240921.7112
        "stop_memory" => integer 1296816
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7147
        "start_memory" => integer 1305480
        "stop_time" => float 1732240921.7153
        "stop_memory" => integer 1306056
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7153
        "start_memory" => integer 1308472
        "stop_time" => float 1732240921.7159
        "stop_memory" => integer 1309056
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7265
        "start_memory" => integer 1329064
        "stop_time" => float 1732240921.7269
        "stop_memory" => integer 1329648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7269
        "start_memory" => integer 1332072
        "stop_time" => float 1732240921.7273
        "stop_memory" => integer 1332672
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7274
        "start_memory" => integer 1341552
        "stop_time" => float 1732240921.7278
        "stop_memory" => integer 1342128
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7283
        "start_memory" => integer 1349104
        "stop_time" => float 1732240921.7288
        "stop_memory" => integer 1349672
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7289
        "start_memory" => integer 1352056
        "stop_time" => float 1732240921.7294
        "stop_memory" => integer 1352648
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7301
        "start_memory" => integer 1365416
        "stop_time" => float 1732240921.7305
        "stop_memory" => integer 1366000
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7305
        "start_memory" => integer 1368400
        "stop_time" => float 1732240921.731
        "stop_memory" => integer 1368984
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7346
        "start_memory" => integer 1381224
        "stop_time" => float 1732240921.7351
        "stop_memory" => integer 1381792
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7352
        "start_memory" => integer 1384192
        "stop_time" => float 1732240921.7358
        "stop_memory" => integer 1384784
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7364
        "start_memory" => integer 1393600
        "stop_time" => float 1732240921.7375
        "stop_memory" => integer 1394136
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7375
        "start_memory" => integer 1396488
        "stop_time" => float 1732240921.7388
        "stop_memory" => integer 1397064
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7399
        "start_memory" => integer 1399736
        "stop_time" => float 1732240921.7407
        "stop_memory" => integer 1400336
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7408
        "start_memory" => integer 1402744
        "stop_time" => float 1732240921.7418
        "stop_memory" => integer 1403344
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7453
        "start_memory" => integer 1427504
        "stop_time" => float 1732240921.746
        "stop_memory" => integer 1428096
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7464
        "start_memory" => integer 1432760
        "stop_time" => float 1732240921.7478
        "stop_memory" => integer 1433320
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7478
        "start_memory" => integer 1435720
        "stop_time" => float 1732240921.7494
        "stop_memory" => integer 1436312
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.752
        "start_memory" => integer 1445960
        "stop_time" => float 1732240921.7523
        "stop_memory" => integer 1446544
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7538
        "start_memory" => integer 1450344
        "stop_time" => float 1732240921.7544
        "stop_memory" => integer 1450912
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7545
        "start_memory" => integer 1453288
        "stop_time" => float 1732240921.7552
        "stop_memory" => integer 1453880
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7572
        "start_memory" => integer 1499256
        "stop_time" => float 1732240921.758
        "stop_memory" => integer 1499840
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7581
        "start_memory" => integer 1502280
        "stop_time" => float 1732240921.759
        "stop_memory" => integer 1502880
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7597
        "start_memory" => integer 1517112
        "stop_time" => float 1732240921.7606
        "stop_memory" => integer 1517704
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7607
        "start_memory" => integer 1520136
        "stop_time" => float 1732240921.7615
        "stop_memory" => integer 1520728
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7627
        "start_memory" => integer 1524632
        "stop_time" => float 1732240921.7639
        "stop_memory" => integer 1525208
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.764
        "start_memory" => integer 1527624
        "stop_time" => float 1732240921.7648
        "stop_memory" => integer 1528224
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7656
        "start_memory" => integer 1572592
        "stop_time" => float 1732240921.7664
        "stop_memory" => integer 1573184
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7665
        "start_memory" => integer 1575616
        "stop_time" => float 1732240921.7673
        "stop_memory" => integer 1576224
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7674
        "start_memory" => integer 1580704
        "stop_time" => float 1732240921.7681
        "stop_memory" => integer 1581272
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7682
        "start_memory" => integer 1583680
        "stop_time" => float 1732240921.769
        "stop_memory" => integer 1584280
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7698
        "start_memory" => integer 1611872
        "stop_time" => float 1732240921.7707
        "stop_memory" => integer 1612448
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7708
        "start_memory" => integer 1614856
        "stop_time" => float 1732240921.7716
        "stop_memory" => integer 1615456
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7722
        "start_memory" => integer 1636712
        "stop_time" => float 1732240921.7729
        "stop_memory" => integer 1637288
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.773
        "start_memory" => integer 1639688
        "stop_time" => float 1732240921.7738
        "stop_memory" => integer 1640288
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7746
        "start_memory" => integer 1652216
        "stop_time" => float 1732240921.7753
        "stop_memory" => integer 1652808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7754
        "start_memory" => integer 1655248
        "stop_time" => float 1732240921.7768
        "stop_memory" => integer 1655856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7777
        "start_memory" => integer 1671440
        "stop_time" => float 1732240921.7786
        "stop_memory" => integer 1672040
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7786
        "start_memory" => integer 1674528
        "stop_time" => float 1732240921.7795
        "stop_memory" => integer 1675144
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7796
        "start_memory" => integer 1679704
        "stop_time" => float 1732240921.7804
        "stop_memory" => integer 1680296
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7805
        "start_memory" => integer 1682760
        "stop_time" => float 1732240921.7815
        "stop_memory" => integer 1683376
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7823
        "start_memory" => integer 1728944
        "stop_time" => float 1732240921.7834
        "stop_memory" => integer 1729536
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7835
        "start_memory" => integer 1732024
        "stop_time" => float 1732240921.7847
        "stop_memory" => integer 1732640
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7857
        "start_memory" => integer 1752488
        "stop_time" => float 1732240921.7865
        "stop_memory" => integer 1753080
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7866
        "start_memory" => integer 1755560
        "stop_time" => float 1732240921.7875
        "stop_memory" => integer 1756160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7882
        "start_memory" => integer 1774696
        "stop_time" => float 1732240921.789
        "stop_memory" => integer 1775296
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.789
        "start_memory" => integer 1777768
        "stop_time" => float 1732240921.79
        "stop_memory" => integer 1778384
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7907
        "start_memory" => integer 1821128
        "stop_time" => float 1732240921.7917
        "stop_memory" => integer 1821720
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7918
        "start_memory" => integer 1824192
        "stop_time" => float 1732240921.7929
        "stop_memory" => integer 1824808
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7947
        "start_memory" => integer 1852696
        "stop_time" => float 1732240921.7956
        "stop_memory" => integer 1853272
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7957
        "start_memory" => integer 1855712
        "stop_time" => float 1732240921.7965
        "stop_memory" => integer 1856320
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7973
        "start_memory" => integer 1871936
        "stop_time" => float 1732240921.7987
        "stop_memory" => integer 1872456
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.7988
        "start_memory" => integer 1874816
        "stop_time" => float 1732240921.8003
        "stop_memory" => integer 1875392
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.801
        "start_memory" => integer 1890512
        "stop_time" => float 1732240921.8017
        "stop_memory" => integer 1891080
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8017
        "start_memory" => integer 1893440
        "stop_time" => float 1732240921.8024
        "stop_memory" => integer 1894024
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8054
        "start_memory" => integer 1900952
        "stop_time" => float 1732240921.8064
        "stop_memory" => integer 1901512
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8065
        "start_memory" => integer 1903872
        "stop_time" => float 1732240921.8076
        "stop_memory" => integer 1904456
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8094
        "start_memory" => integer 1911104
        "stop_time" => float 1732240921.8106
        "stop_memory" => integer 1911648
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8106
        "start_memory" => integer 1914008
        "stop_time" => float 1732240921.8118
        "stop_memory" => integer 1914584
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8123
        "start_memory" => integer 1916864
        "stop_time" => float 1732240921.8136
        "stop_memory" => integer 1917416
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8137
        "start_memory" => integer 1919760
        "stop_time" => float 1732240921.8148
        "stop_memory" => integer 1920336
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8155
        "start_memory" => integer 1926776
        "stop_time" => float 1732240921.8165
        "stop_memory" => integer 1927328
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8166
        "start_memory" => integer 1929672
        "stop_time" => float 1732240921.818
        "stop_memory" => integer 1931272
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8187
        "start_memory" => integer 1942360
        "stop_time" => float 1732240921.8198
        "stop_memory" => integer 1942928
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8198
        "start_memory" => integer 1945296
        "stop_time" => float 1732240921.8211
        "stop_memory" => integer 1945880
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8229
        "start_memory" => integer 1952232
        "stop_time" => float 1732240921.8241
        "stop_memory" => integer 1952776
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8242
        "start_memory" => integer 1955128
        "stop_time" => float 1732240921.8255
        "stop_memory" => integer 1955704
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8268
        "start_memory" => integer 1960592
        "stop_time" => float 1732240921.8282
        "stop_memory" => integer 1961176
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8282
        "start_memory" => integer 1963568
        "stop_time" => float 1732240921.8297
        "stop_memory" => integer 1964160
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8304
        "start_memory" => integer 1978760
        "stop_time" => float 1732240921.8318
        "stop_memory" => integer 1979328
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8319
        "start_memory" => integer 1981744
        "stop_time" => float 1732240921.8334
        "stop_memory" => integer 1982336
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8341
        "start_memory" => integer 1996616
        "stop_time" => float 1732240921.8356
        "stop_memory" => integer 1997184
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8356
        "start_memory" => integer 1999600
        "stop_time" => float 1732240921.8374
        "stop_memory" => integer 2000192
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8382
        "start_memory" => integer 2014448
        "stop_time" => float 1732240921.8396
        "stop_memory" => integer 2015016
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8397
        "start_memory" => integer 2017432
        "stop_time" => float 1732240921.8413
        "stop_memory" => integer 2018024
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8421
        "start_memory" => integer 2032296
        "stop_time" => float 1732240921.8435
        "stop_memory" => integer 2032864
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8435
        "start_memory" => integer 2035280
        "stop_time" => float 1732240921.8452
        "stop_memory" => integer 2035872
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8461
        "start_memory" => integer 2050128
        "stop_time" => float 1732240921.8476
        "stop_memory" => integer 2050696
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8477
        "start_memory" => integer 2053112
        "stop_time" => float 1732240921.8494
        "stop_memory" => integer 2053704
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8503
        "start_memory" => integer 2067960
        "stop_time" => float 1732240921.8522
        "stop_memory" => integer 2068528
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8523
        "start_memory" => integer 2070944
        "stop_time" => float 1732240921.854
        "stop_memory" => integer 2071536
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8549
        "start_memory" => integer 2085808
        "stop_time" => float 1732240921.8563
        "stop_memory" => integer 2086376
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8564
        "start_memory" => integer 2088792
        "stop_time" => float 1732240921.8581
        "stop_memory" => integer 2089384
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8588
        "start_memory" => integer 2103640
        "stop_time" => float 1732240921.8603
        "stop_memory" => integer 2104208
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8603
        "start_memory" => integer 2106624
        "stop_time" => float 1732240921.8619
        "stop_memory" => integer 2107216
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8626
        "start_memory" => integer 2121568
        "stop_time" => float 1732240921.864
        "stop_memory" => integer 2122136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8641
        "start_memory" => integer 2124552
        "stop_time" => float 1732240921.8657
        "stop_memory" => integer 2125144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8666
        "start_memory" => integer 2139400
        "stop_time" => float 1732240921.8679
        "stop_memory" => integer 2139968
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.868
        "start_memory" => integer 2142384
        "stop_time" => float 1732240921.8695
        "stop_memory" => integer 2142976
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8702
        "start_memory" => integer 2157232
        "stop_time" => float 1732240921.8716
        "stop_memory" => integer 2157800
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8716
        "start_memory" => integer 2160216
        "stop_time" => float 1732240921.8731
        "stop_memory" => integer 2160808
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8739
        "start_memory" => integer 2175048
        "stop_time" => float 1732240921.8755
        "stop_memory" => integer 2175616
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8756
        "start_memory" => integer 2178032
        "stop_time" => float 1732240921.8773
        "stop_memory" => integer 2178624
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.878
        "start_memory" => integer 2192880
        "stop_time" => float 1732240921.8793
        "stop_memory" => integer 2193448
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8795
        "start_memory" => integer 2195864
        "stop_time" => float 1732240921.8812
        "stop_memory" => integer 2196456
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.882
        "start_memory" => integer 2210728
        "stop_time" => float 1732240921.8832
        "stop_memory" => integer 2211296
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8833
        "start_memory" => integer 2213712
        "stop_time" => float 1732240921.8848
        "stop_memory" => integer 2214304
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8856
        "start_memory" => integer 2228616
        "stop_time" => float 1732240921.887
        "stop_memory" => integer 2229184
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.887
        "start_memory" => integer 2231600
        "stop_time" => float 1732240921.8887
        "stop_memory" => integer 2232192
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8894
        "start_memory" => integer 2246464
        "stop_time" => float 1732240921.8907
        "stop_memory" => integer 2247032
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8908
        "start_memory" => integer 2249448
        "stop_time" => float 1732240921.8923
        "stop_memory" => integer 2250040
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.893
        "start_memory" => integer 2264440
        "stop_time" => float 1732240921.8943
        "stop_memory" => integer 2265008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8943
        "start_memory" => integer 2267424
        "stop_time" => float 1732240921.8959
        "stop_memory" => integer 2268016
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8972
        "start_memory" => integer 2282304
        "stop_time" => float 1732240921.8987
        "stop_memory" => integer 2282872
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.8988
        "start_memory" => integer 2285288
        "stop_time" => float 1732240921.9004
        "stop_memory" => integer 2285880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9013
        "start_memory" => integer 2300152
        "stop_time" => float 1732240921.9029
        "stop_memory" => integer 2300720
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9029
        "start_memory" => integer 2303136
        "stop_time" => float 1732240921.9048
        "stop_memory" => integer 2303728
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9057
        "start_memory" => integer 2318000
        "stop_time" => float 1732240921.9072
        "stop_memory" => integer 2318568
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9073
        "start_memory" => integer 2320984
        "stop_time" => float 1732240921.9088
        "stop_memory" => integer 2321576
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9095
        "start_memory" => integer 2335832
        "stop_time" => float 1732240921.9113
        "stop_memory" => integer 2336400
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9115
        "start_memory" => integer 2338816
        "stop_time" => float 1732240921.9133
        "stop_memory" => integer 2339408
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9139
        "start_memory" => integer 2353664
        "stop_time" => float 1732240921.9154
        "stop_memory" => integer 2354232
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9155
        "start_memory" => integer 2356648
        "stop_time" => float 1732240921.9173
        "stop_memory" => integer 2357240
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.918
        "start_memory" => integer 2371512
        "stop_time" => float 1732240921.9193
        "stop_memory" => integer 2372080
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9194
        "start_memory" => integer 2374496
        "stop_time" => float 1732240921.9209
        "stop_memory" => integer 2375088
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9217
        "start_memory" => integer 2389344
        "stop_time" => float 1732240921.9232
        "stop_memory" => integer 2389912
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9233
        "start_memory" => integer 2392328
        "stop_time" => float 1732240921.9253
        "stop_memory" => integer 2392920
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.927
        "start_memory" => integer 2407416
        "stop_time" => float 1732240921.9289
        "stop_memory" => integer 2407984
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.929
        "start_memory" => integer 2410400
        "stop_time" => float 1732240921.9311
        "stop_memory" => integer 2410992
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9339
        "start_memory" => integer 2420112
        "stop_time" => float 1732240921.9348
        "stop_memory" => integer 2420664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9349
        "start_memory" => integer 2423024
        "stop_time" => float 1732240921.9361
        "stop_memory" => integer 2423608
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9371
        "start_memory" => integer 2447544
        "stop_time" => float 1732240921.9383
        "stop_memory" => integer 2448120
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9384
        "start_memory" => integer 2450496
        "stop_time" => float 1732240921.9396
        "stop_memory" => integer 2451088
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9406
        "start_memory" => integer 2478800
        "stop_time" => float 1732240921.9421
        "stop_memory" => integer 2479352
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9422
        "start_memory" => integer 2481752
        "stop_time" => float 1732240921.9439
        "stop_memory" => integer 2482336
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9462
        "start_memory" => integer 2491152
        "stop_time" => float 1732240921.9477
        "stop_memory" => integer 2491744
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9478
        "start_memory" => integer 2494152
        "stop_time" => float 1732240921.9494
        "stop_memory" => integer 2494752
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9501
        "start_memory" => integer 2506016
        "stop_time" => float 1732240921.9517
        "stop_memory" => integer 2506608
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9518
        "start_memory" => integer 2509040
        "stop_time" => float 1732240921.9535
        "stop_memory" => integer 2509632
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.955
        "start_memory" => integer 2522896
        "stop_time" => float 1732240921.9564
        "stop_memory" => integer 2523472
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9565
        "start_memory" => integer 2525888
        "stop_time" => float 1732240921.9581
        "stop_memory" => integer 2526488
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.96
        "start_memory" => integer 2537168
        "stop_time" => float 1732240921.9606
        "stop_memory" => integer 2537760
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9639
        "start_memory" => integer 2547136
        "stop_time" => float 1732240921.9658
        "stop_memory" => integer 2547712
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9662
        "start_memory" => integer 2556056
        "stop_time" => float 1732240921.9681
        "stop_memory" => integer 2556640
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9698
        "start_memory" => integer 2565720
        "stop_time" => float 1732240921.9715
        "stop_memory" => integer 2566272
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9716
        "start_memory" => integer 2568656
        "stop_time" => float 1732240921.9733
        "stop_memory" => integer 2569240
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9741
        "start_memory" => integer 2572248
        "stop_time" => float 1732240921.9757
        "stop_memory" => integer 2572808
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9758
        "start_memory" => integer 2575192
        "stop_time" => float 1732240921.9776
        "stop_memory" => integer 2575776
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9784
        "start_memory" => integer 2578784
        "stop_time" => float 1732240921.98
        "stop_memory" => integer 2579344
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9801
        "start_memory" => integer 2581728
        "stop_time" => float 1732240921.9819
        "stop_memory" => integer 2582312
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9832
        "start_memory" => integer 2588728
        "stop_time" => float 1732240921.9847
        "stop_memory" => integer 2589288
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9848
        "start_memory" => integer 2591648
        "stop_time" => float 1732240921.9869
        "stop_memory" => integer 2592216
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9877
        "start_memory" => integer 2594144
        "stop_time" => float 1732240921.9891
        "stop_memory" => integer 2594728
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9892
        "start_memory" => integer 2598632
        "stop_time" => float 1732240921.9904
        "stop_memory" => integer 2599192
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9905
        "start_memory" => integer 2601568
        "stop_time" => float 1732240921.9918
        "stop_memory" => integer 2602152
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9927
        "start_memory" => integer 2685616
        "stop_time" => float 1732240921.9942
        "stop_memory" => integer 2686192
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.995
        "start_memory" => integer 2718688
        "stop_time" => float 1732240921.9966
        "stop_memory" => integer 2719280
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9974
        "start_memory" => integer 2747048
        "stop_time" => float 1732240921.9983
        "stop_memory" => integer 2747632
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240921.9984
        "start_memory" => integer 2750032
        "stop_time" => float 1732240921.9995
        "stop_memory" => integer 2750632
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0002
        "start_memory" => integer 2753800
        "stop_time" => float 1732240922.0015
        "stop_memory" => integer 2754360
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0022
        "start_memory" => integer 2780400
        "stop_time" => float 1732240922.0036
        "stop_memory" => integer 2780976
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0043
        "start_memory" => integer 2809976
        "stop_time" => float 1732240922.0064
        "stop_memory" => integer 2810568
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0072
        "start_memory" => integer 2837248
        "stop_time" => float 1732240922.0087
        "stop_memory" => integer 2837784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0088
        "start_memory" => integer 2840136
        "stop_time" => float 1732240922.0104
        "stop_memory" => integer 2840712
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0134
        "start_memory" => integer 2852592
        "stop_time" => float 1732240922.0146
        "stop_memory" => integer 2853208
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0147
        "start_memory" => integer 2855864
        "stop_time" => float 1732240922.0158
        "stop_memory" => integer 2856456
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0178
        "start_memory" => integer 2876008
        "stop_time" => float 1732240922.0196
        "stop_memory" => integer 2876584
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0197
        "start_memory" => integer 2879016
        "stop_time" => float 1732240922.0217
        "stop_memory" => integer 2879616
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0255
        "start_memory" => integer 2895872
        "stop_time" => float 1732240922.0269
        "stop_memory" => integer 2896416
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.027
        "start_memory" => integer 2898784
        "stop_time" => float 1732240922.0282
        "stop_memory" => integer 2899368
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0287
        "start_memory" => integer 2903800
        "stop_time" => float 1732240922.0301
        "stop_memory" => integer 2904360
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0302
        "start_memory" => integer 2906720
        "stop_time" => float 1732240922.0316
        "stop_memory" => integer 2907304
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0322
        "start_memory" => integer 2926312
        "stop_time" => float 1732240922.0337
        "stop_memory" => integer 2926888
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0338
        "start_memory" => integer 2929280
        "stop_time" => float 1732240922.0355
        "stop_memory" => integer 2929872
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0362
        "start_memory" => integer 2948072
        "stop_time" => float 1732240922.0371
        "stop_memory" => integer 2948656
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0372
        "start_memory" => integer 2951064
        "stop_time" => float 1732240922.0383
        "stop_memory" => integer 2951664
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0392
        "start_memory" => integer 2974184
        "stop_time" => float 1732240922.0406
        "stop_memory" => integer 2974744
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0407
        "start_memory" => integer 2977160
        "stop_time" => float 1732240922.0421
        "stop_memory" => integer 2977752
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0429
        "start_memory" => integer 2995896
        "stop_time" => float 1732240922.044
        "stop_memory" => integer 2996432
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0441
        "start_memory" => integer 2998776
        "stop_time" => float 1732240922.0454
        "stop_memory" => integer 2999352
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0462
        "start_memory" => integer 3018520
        "stop_time" => float 1732240922.0473
        "stop_memory" => integer 3019088
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0473
        "start_memory" => integer 3021448
        "stop_time" => float 1732240922.0488
        "stop_memory" => integer 3022032
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0531
        "start_memory" => integer 3028440
        "stop_time" => float 1732240922.0548
        "stop_memory" => integer 3029000
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0549
        "start_memory" => integer 3031360
        "stop_time" => float 1732240922.0565
        "stop_memory" => integer 3031928
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0573
        "start_memory" => integer 3049368
        "stop_time" => float 1732240922.0587
        "stop_memory" => integer 3049936
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0588
        "start_memory" => integer 3052320
        "stop_time" => float 1732240922.0603
        "stop_memory" => integer 3052904
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.061
        "start_memory" => integer 3081552
        "stop_time" => float 1732240922.0623
        "stop_memory" => integer 3082128
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0624
        "start_memory" => integer 3084552
        "stop_time" => float 1732240922.0641
        "stop_memory" => integer 3085144
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.065
        "start_memory" => integer 3102400
        "stop_time" => float 1732240922.0663
        "stop_memory" => integer 3102984
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0666
        "start_memory" => integer 3068568
        "stop_time" => float 1732240922.0678
        "stop_memory" => integer 3070528
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0681
        "start_memory" => integer 3094736
        "stop_time" => float 1732240922.0693
        "stop_memory" => integer 3096400
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1732240922.0694
        "start_memory" => integer 3095984
        "stop_time" => float 1732240922.0704
        "stop_memory" => integer 3097648
    )
)

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