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 1737588266.5407
        "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 1737588266.5407
        "start_memory" => integer 584200
        "stop_time" => float 1737588266.5423
        "stop_memory" => integer 584864
    )
    "kp/2" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5423
        "start_memory" => integer 587288
        "stop_time" => float 1737588266.544
        "stop_memory" => integer 587896
    )
    "kp/3" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5441
        "start_memory" => integer 596112
        "stop_time" => float 1737588266.5456
        "stop_memory" => integer 596664
    )
    "kp/4" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5457
        "start_memory" => integer 599080
        "stop_time" => float 1737588266.5475
        "stop_memory" => integer 599672
    )
    "kp/5" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5475
        "start_memory" => integer 603728
        "stop_time" => float 1737588266.5489
        "stop_memory" => integer 604280
    )
    "kp/6" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5489
        "start_memory" => integer 606664
        "stop_time" => float 1737588266.5503
        "stop_memory" => integer 607248
    )
    "kp/7" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5504
        "start_memory" => integer 618520
        "stop_time" => float 1737588266.552
        "stop_memory" => integer 619080
    )
    "kp/8" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5521
        "start_memory" => integer 621448
        "stop_time" => float 1737588266.5535
        "stop_memory" => integer 622096
    )
    "kp/9" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5536
        "start_memory" => integer 640976
        "stop_time" => float 1737588266.5551
        "stop_memory" => integer 641552
    )
    "kp/a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5551
        "start_memory" => integer 643944
        "stop_time" => float 1737588266.5571
        "stop_memory" => integer 644520
    )
    "kp/b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5573
        "start_memory" => integer 658040
        "stop_time" => float 1737588266.5588
        "stop_memory" => integer 658584
    )
    "kp/c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5588
        "start_memory" => integer 660928
        "stop_time" => float 1737588266.5606
        "stop_memory" => integer 661504
    )
    "kp/d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5607
        "start_memory" => integer 673880
        "stop_time" => float 1737588266.562
        "stop_memory" => integer 674480
    )
    "kp/e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.562
        "start_memory" => integer 675528
        "stop_time" => float 1737588266.5632
        "stop_memory" => integer 676064
    )
    "kp/f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5633
        "start_memory" => integer 678416
        "stop_time" => float 1737588266.5649
        "stop_memory" => integer 678992
    )
    "kp/g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.565
        "start_memory" => integer 682800
        "stop_time" => float 1737588266.5664
        "stop_memory" => integer 683480
    )
    "kp/h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5664
        "start_memory" => integer 685824
        "stop_time" => float 1737588266.5681
        "stop_memory" => integer 686400
    )
    "kp/i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5682
        "start_memory" => integer 709984
        "stop_time" => float 1737588266.5696
        "stop_memory" => integer 710584
    )
    "kp/j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5696
        "start_memory" => integer 712984
        "stop_time" => float 1737588266.5713
        "stop_memory" => integer 713584
    )
    "kp/k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5714
        "start_memory" => integer 722736
        "stop_time" => float 1737588266.5726
        "stop_memory" => integer 723240
    )
    "kp/l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5727
        "start_memory" => integer 723880
        "stop_time" => float 1737588266.574
        "stop_memory" => integer 724456
    )
    "kp/m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5744
        "start_memory" => integer 878288
        "stop_time" => float 1737588266.5758
        "stop_memory" => integer 878872
    )
    "kp/n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5759
        "start_memory" => integer 881272
        "stop_time" => float 1737588266.5774
        "stop_memory" => integer 881872
    )
    "kp/o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5775
        "start_memory" => integer 882856
        "stop_time" => float 1737588266.5789
        "stop_memory" => integer 883432
    )
    "kp/p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5789
        "start_memory" => integer 885832
        "stop_time" => float 1737588266.5805
        "stop_memory" => integer 886432
    )
    "kp/q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5805
        "start_memory" => integer 892688
        "stop_time" => float 1737588266.5817
        "stop_memory" => integer 893248
    )
    "kp/r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5818
        "start_memory" => integer 895616
        "stop_time" => float 1737588266.5831
        "stop_memory" => integer 896208
    )
    "kp/s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5833
        "start_memory" => integer 919144
        "stop_time" => float 1737588266.5847
        "stop_memory" => integer 919680
    )
    "kp/t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5848
        "start_memory" => integer 922024
        "stop_time" => float 1737588266.5864
        "stop_memory" => integer 922600
    )
    "kp/u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588266.5874
        "start_memory" => integer 945240
        "stop_time" => float 1737588266.5889
        "stop_memory" => integer 945840
    )
    "kp/v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4871
        "start_memory" => integer 986752
        "stop_time" => float 1737588267.4875
        "stop_memory" => integer 987328
    )
    "kp/10" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4875
        "start_memory" => integer 989680
        "stop_time" => float 1737588267.4879
        "stop_memory" => integer 990520
    )
    "kp/11" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4885
        "start_memory" => integer 1002088
        "stop_time" => float 1737588267.4889
        "stop_memory" => integer 1002664
    )
    "kp/12" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.489
        "start_memory" => integer 1005056
        "stop_time" => float 1737588267.4893
        "stop_memory" => integer 1005648
    )
    "kp/13" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4899
        "start_memory" => integer 1017496
        "stop_time" => float 1737588267.4911
        "stop_memory" => integer 1018064
    )
    "kp/14" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4912
        "start_memory" => integer 1020440
        "stop_time" => float 1737588267.4926
        "stop_memory" => integer 1021016
    )
    "kp/15" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4932
        "start_memory" => integer 1033160
        "stop_time" => float 1737588267.4939
        "stop_memory" => integer 1033752
    )
    "kp/16" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.494
        "start_memory" => integer 1039616
        "stop_time" => float 1737588267.4946
        "stop_memory" => integer 1040184
    )
    "kp/17" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4947
        "start_memory" => integer 1042576
        "stop_time" => float 1737588267.4955
        "stop_memory" => integer 1043168
    )
    "kp/18" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4957
        "start_memory" => integer 1052040
        "stop_time" => float 1737588267.4964
        "stop_memory" => integer 1052640
    )
    "kp/19" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4967
        "start_memory" => integer 1058960
        "stop_time" => float 1737588267.4975
        "stop_memory" => integer 1059536
    )
    "kp/1a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4977
        "start_memory" => integer 1064608
        "stop_time" => float 1737588267.4984
        "stop_memory" => integer 1065208
    )
    "kp/1b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4986
        "start_memory" => integer 1070696
        "stop_time" => float 1737588267.4993
        "stop_memory" => integer 1071272
    )
    "kp/1c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.4996
        "start_memory" => integer 1079808
        "stop_time" => float 1737588267.5003
        "stop_memory" => integer 1080392
    )
    "kp/1d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5004
        "start_memory" => integer 1085776
        "stop_time" => float 1737588267.5011
        "stop_memory" => integer 1086360
    )
    "kp/1e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5012
        "start_memory" => integer 1093408
        "stop_time" => float 1737588267.5019
        "stop_memory" => integer 1094008
    )
    "kp/1f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5021
        "start_memory" => integer 1101200
        "stop_time" => float 1737588267.5028
        "stop_memory" => integer 1101792
    )
    "kp/1g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5029
        "start_memory" => integer 1108280
        "stop_time" => float 1737588267.5036
        "stop_memory" => integer 1108872
    )
    "kp/1h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5037
        "start_memory" => integer 1114872
        "stop_time" => float 1737588267.5047
        "stop_memory" => integer 1115464
    )
    "kp/1i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.505
        "start_memory" => integer 1151760
        "stop_time" => float 1737588267.5057
        "stop_memory" => integer 1152336
    )
    "kp/1j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5058
        "start_memory" => integer 1160376
        "stop_time" => float 1737588267.5065
        "stop_memory" => integer 1160976
    )
    "kp/1k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5066
        "start_memory" => integer 1168400
        "stop_time" => float 1737588267.5072
        "stop_memory" => integer 1168976
    )
    "kp/1l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5075
        "start_memory" => integer 1178344
        "stop_time" => float 1737588267.5082
        "stop_memory" => integer 1178928
    )
    "kp/1m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5084
        "start_memory" => integer 1187608
        "stop_time" => float 1737588267.5089
        "stop_memory" => integer 1188160
    )
    "kp/1n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5089
        "start_memory" => integer 1190520
        "stop_time" => float 1737588267.5094
        "stop_memory" => integer 1191104
    )
    "kp/1o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5096
        "start_memory" => integer 1202984
        "stop_time" => float 1737588267.511
        "stop_memory" => integer 1203544
    )
    "kp/1p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.511
        "start_memory" => integer 1205904
        "stop_time" => float 1737588267.5127
        "stop_memory" => integer 1206472
    )
    "kp/1q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.515
        "start_memory" => integer 1250104
        "stop_time" => float 1737588267.5164
        "stop_memory" => integer 1250688
    )
    "kp/1r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5228
        "start_memory" => integer 1251288
        "stop_time" => float 1737588267.5234
        "stop_memory" => integer 1251864
    )
    "kp/1s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5234
        "start_memory" => integer 1254272
        "stop_time" => float 1737588267.5241
        "stop_memory" => integer 1254864
    )
    "kp/1t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5279
        "start_memory" => integer 1266832
        "stop_time" => float 1737588267.5285
        "stop_memory" => integer 1267416
    )
    "kp/1u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5286
        "start_memory" => integer 1269840
        "stop_time" => float 1737588267.5292
        "stop_memory" => integer 1270440
    )
    "kp/1v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5326
        "start_memory" => integer 1282304
        "stop_time" => float 1737588267.5332
        "stop_memory" => integer 1282864
    )
    "kp/20" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5333
        "start_memory" => integer 1285256
        "stop_time" => float 1737588267.5339
        "stop_memory" => integer 1286360
    )
    "kp/21" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5339
        "start_memory" => integer 1296216
        "stop_time" => float 1737588267.5346
        "stop_memory" => integer 1296816
    )
    "kp/22" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5388
        "start_memory" => integer 1305480
        "stop_time" => float 1737588267.5394
        "stop_memory" => integer 1306056
    )
    "kp/23" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5395
        "start_memory" => integer 1308472
        "stop_time" => float 1737588267.54
        "stop_memory" => integer 1309056
    )
    "kp/24" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.552
        "start_memory" => integer 1329064
        "stop_time" => float 1737588267.5527
        "stop_memory" => integer 1329648
    )
    "kp/25" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5528
        "start_memory" => integer 1332072
        "stop_time" => float 1737588267.5533
        "stop_memory" => integer 1332672
    )
    "kp/26" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5534
        "start_memory" => integer 1341552
        "stop_time" => float 1737588267.554
        "stop_memory" => integer 1342128
    )
    "kp/27" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5546
        "start_memory" => integer 1349104
        "stop_time" => float 1737588267.5551
        "stop_memory" => integer 1349672
    )
    "kp/28" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5551
        "start_memory" => integer 1352056
        "stop_time" => float 1737588267.5557
        "stop_memory" => integer 1352648
    )
    "kp/29" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5563
        "start_memory" => integer 1365416
        "stop_time" => float 1737588267.5568
        "stop_memory" => integer 1366000
    )
    "kp/2a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5569
        "start_memory" => integer 1368400
        "stop_time" => float 1737588267.5574
        "stop_memory" => integer 1368984
    )
    "kp/2b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5618
        "start_memory" => integer 1381224
        "stop_time" => float 1737588267.5624
        "stop_memory" => integer 1381792
    )
    "kp/2c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5625
        "start_memory" => integer 1384192
        "stop_time" => float 1737588267.563
        "stop_memory" => integer 1384784
    )
    "kp/2d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5638
        "start_memory" => integer 1393600
        "stop_time" => float 1737588267.5651
        "stop_memory" => integer 1394136
    )
    "kp/2e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5652
        "start_memory" => integer 1396488
        "stop_time" => float 1737588267.5668
        "stop_memory" => integer 1397064
    )
    "kp/2f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5682
        "start_memory" => integer 1399736
        "stop_time" => float 1737588267.5691
        "stop_memory" => integer 1400336
    )
    "kp/2g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5692
        "start_memory" => integer 1402744
        "stop_time" => float 1737588267.5701
        "stop_memory" => integer 1403344
    )
    "kp/2h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5737
        "start_memory" => integer 1427504
        "stop_time" => float 1737588267.5744
        "stop_memory" => integer 1428096
    )
    "kp/2i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5749
        "start_memory" => integer 1432760
        "stop_time" => float 1737588267.5766
        "stop_memory" => integer 1433320
    )
    "kp/2j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5767
        "start_memory" => integer 1435720
        "stop_time" => float 1737588267.5784
        "stop_memory" => integer 1436312
    )
    "kp/2k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5813
        "start_memory" => integer 1445960
        "stop_time" => float 1737588267.5815
        "stop_memory" => integer 1446544
    )
    "kp/2l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5831
        "start_memory" => integer 1450344
        "stop_time" => float 1737588267.5839
        "stop_memory" => integer 1450912
    )
    "kp/2m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.584
        "start_memory" => integer 1453288
        "stop_time" => float 1737588267.5849
        "stop_memory" => integer 1453880
    )
    "kp/2n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5865
        "start_memory" => integer 1499256
        "stop_time" => float 1737588267.5874
        "stop_memory" => integer 1499840
    )
    "kp/2o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5875
        "start_memory" => integer 1502280
        "stop_time" => float 1737588267.5885
        "stop_memory" => integer 1502880
    )
    "kp/2p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.589
        "start_memory" => integer 1517112
        "stop_time" => float 1737588267.5899
        "stop_memory" => integer 1517704
    )
    "kp/2q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5899
        "start_memory" => integer 1520136
        "stop_time" => float 1737588267.5909
        "stop_memory" => integer 1520728
    )
    "kp/2r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5923
        "start_memory" => integer 1524632
        "stop_time" => float 1737588267.5932
        "stop_memory" => integer 1525208
    )
    "kp/2s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5933
        "start_memory" => integer 1527624
        "stop_time" => float 1737588267.5943
        "stop_memory" => integer 1528224
    )
    "kp/2t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5952
        "start_memory" => integer 1572592
        "stop_time" => float 1737588267.5963
        "stop_memory" => integer 1573184
    )
    "kp/2u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5964
        "start_memory" => integer 1575616
        "stop_time" => float 1737588267.5975
        "stop_memory" => integer 1576224
    )
    "kp/2v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5975
        "start_memory" => integer 1580704
        "stop_time" => float 1737588267.5985
        "stop_memory" => integer 1581272
    )
    "kp/30" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.5986
        "start_memory" => integer 1583680
        "stop_time" => float 1737588267.5996
        "stop_memory" => integer 1584280
    )
    "kp/31" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6004
        "start_memory" => integer 1611872
        "stop_time" => float 1737588267.6013
        "stop_memory" => integer 1612448
    )
    "kp/32" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6013
        "start_memory" => integer 1614856
        "stop_time" => float 1737588267.6022
        "stop_memory" => integer 1615456
    )
    "kp/33" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6028
        "start_memory" => integer 1636712
        "stop_time" => float 1737588267.6038
        "stop_memory" => integer 1637288
    )
    "kp/34" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6039
        "start_memory" => integer 1639688
        "stop_time" => float 1737588267.6045
        "stop_memory" => integer 1640288
    )
    "kp/35" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6051
        "start_memory" => integer 1652216
        "stop_time" => float 1737588267.6057
        "stop_memory" => integer 1652808
    )
    "kp/36" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6057
        "start_memory" => integer 1655248
        "stop_time" => float 1737588267.6064
        "stop_memory" => integer 1655856
    )
    "kp/37" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6068
        "start_memory" => integer 1671440
        "stop_time" => float 1737588267.6075
        "stop_memory" => integer 1672040
    )
    "kp/38" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6076
        "start_memory" => integer 1674528
        "stop_time" => float 1737588267.6083
        "stop_memory" => integer 1675144
    )
    "kp/39" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6083
        "start_memory" => integer 1679704
        "stop_time" => float 1737588267.609
        "stop_memory" => integer 1680296
    )
    "kp/3a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.609
        "start_memory" => integer 1682760
        "stop_time" => float 1737588267.6098
        "stop_memory" => integer 1683376
    )
    "kp/3b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6104
        "start_memory" => integer 1728944
        "stop_time" => float 1737588267.6111
        "stop_memory" => integer 1729536
    )
    "kp/3c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6111
        "start_memory" => integer 1732024
        "stop_time" => float 1737588267.6119
        "stop_memory" => integer 1732640
    )
    "kp/3d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6124
        "start_memory" => integer 1752488
        "stop_time" => float 1737588267.613
        "stop_memory" => integer 1753080
    )
    "kp/3e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6131
        "start_memory" => integer 1755560
        "stop_time" => float 1737588267.6138
        "stop_memory" => integer 1756160
    )
    "kp/3f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6142
        "start_memory" => integer 1774696
        "stop_time" => float 1737588267.6149
        "stop_memory" => integer 1775296
    )
    "kp/3g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6149
        "start_memory" => integer 1777768
        "stop_time" => float 1737588267.6157
        "stop_memory" => integer 1778384
    )
    "kp/3h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6161
        "start_memory" => integer 1821128
        "stop_time" => float 1737588267.6168
        "stop_memory" => integer 1821720
    )
    "kp/3i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6168
        "start_memory" => integer 1824192
        "stop_time" => float 1737588267.6176
        "stop_memory" => integer 1824808
    )
    "kp/3j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6189
        "start_memory" => integer 1852696
        "stop_time" => float 1737588267.62
        "stop_memory" => integer 1853272
    )
    "kp/3k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6201
        "start_memory" => integer 1855712
        "stop_time" => float 1737588267.6211
        "stop_memory" => integer 1856320
    )
    "kp/3l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6219
        "start_memory" => integer 1871936
        "stop_time" => float 1737588267.6233
        "stop_memory" => integer 1872456
    )
    "kp/3m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6235
        "start_memory" => integer 1874816
        "stop_time" => float 1737588267.6251
        "stop_memory" => integer 1875392
    )
    "kp/3n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6257
        "start_memory" => integer 1890512
        "stop_time" => float 1737588267.6265
        "stop_memory" => integer 1891080
    )
    "kp/3o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6265
        "start_memory" => integer 1893440
        "stop_time" => float 1737588267.6274
        "stop_memory" => integer 1894024
    )
    "kp/3p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6312
        "start_memory" => integer 1900952
        "stop_time" => float 1737588267.6326
        "stop_memory" => integer 1901512
    )
    "kp/3q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6327
        "start_memory" => integer 1903872
        "stop_time" => float 1737588267.6343
        "stop_memory" => integer 1904456
    )
    "kp/3r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6366
        "start_memory" => integer 1911104
        "stop_time" => float 1737588267.638
        "stop_memory" => integer 1911648
    )
    "kp/3s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6381
        "start_memory" => integer 1914008
        "stop_time" => float 1737588267.6397
        "stop_memory" => integer 1914584
    )
    "kp/3t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6403
        "start_memory" => integer 1916864
        "stop_time" => float 1737588267.6417
        "stop_memory" => integer 1917416
    )
    "kp/3u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6417
        "start_memory" => integer 1919760
        "stop_time" => float 1737588267.6433
        "stop_memory" => integer 1920336
    )
    "kp/3v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6439
        "start_memory" => integer 1926776
        "stop_time" => float 1737588267.6453
        "stop_memory" => integer 1927328
    )
    "kp/40" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6454
        "start_memory" => integer 1929672
        "stop_time" => float 1737588267.6471
        "stop_memory" => integer 1931272
    )
    "kp/41" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6482
        "start_memory" => integer 1942360
        "stop_time" => float 1737588267.6495
        "stop_memory" => integer 1942928
    )
    "kp/42" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6496
        "start_memory" => integer 1945296
        "stop_time" => float 1737588267.6512
        "stop_memory" => integer 1945880
    )
    "kp/43" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6533
        "start_memory" => integer 1952232
        "stop_time" => float 1737588267.6547
        "stop_memory" => integer 1952776
    )
    "kp/44" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6547
        "start_memory" => integer 1955128
        "stop_time" => float 1737588267.6563
        "stop_memory" => integer 1955704
    )
    "kp/45" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6575
        "start_memory" => integer 1960592
        "stop_time" => float 1737588267.6591
        "stop_memory" => integer 1961176
    )
    "kp/46" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6592
        "start_memory" => integer 1963568
        "stop_time" => float 1737588267.661
        "stop_memory" => integer 1964160
    )
    "kp/47" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6617
        "start_memory" => integer 1978760
        "stop_time" => float 1737588267.6635
        "stop_memory" => integer 1979328
    )
    "kp/48" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6636
        "start_memory" => integer 1981744
        "stop_time" => float 1737588267.6656
        "stop_memory" => integer 1982336
    )
    "kp/49" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6664
        "start_memory" => integer 1996616
        "stop_time" => float 1737588267.6682
        "stop_memory" => integer 1997184
    )
    "kp/4a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6683
        "start_memory" => integer 1999600
        "stop_time" => float 1737588267.6702
        "stop_memory" => integer 2000192
    )
    "kp/4b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6709
        "start_memory" => integer 2014448
        "stop_time" => float 1737588267.6726
        "stop_memory" => integer 2015016
    )
    "kp/4c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6727
        "start_memory" => integer 2017432
        "stop_time" => float 1737588267.6746
        "stop_memory" => integer 2018024
    )
    "kp/4d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6753
        "start_memory" => integer 2032296
        "stop_time" => float 1737588267.677
        "stop_memory" => integer 2032864
    )
    "kp/4e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6771
        "start_memory" => integer 2035280
        "stop_time" => float 1737588267.679
        "stop_memory" => integer 2035872
    )
    "kp/4f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6798
        "start_memory" => integer 2050128
        "stop_time" => float 1737588267.6815
        "stop_memory" => integer 2050696
    )
    "kp/4g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6816
        "start_memory" => integer 2053112
        "stop_time" => float 1737588267.6836
        "stop_memory" => integer 2053704
    )
    "kp/4h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6845
        "start_memory" => integer 2067960
        "stop_time" => float 1737588267.6862
        "stop_memory" => integer 2068528
    )
    "kp/4i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6863
        "start_memory" => integer 2070944
        "stop_time" => float 1737588267.6882
        "stop_memory" => integer 2071536
    )
    "kp/4j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6889
        "start_memory" => integer 2085808
        "stop_time" => float 1737588267.6907
        "stop_memory" => integer 2086376
    )
    "kp/4k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6907
        "start_memory" => integer 2088792
        "stop_time" => float 1737588267.6926
        "stop_memory" => integer 2089384
    )
    "kp/4l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6934
        "start_memory" => integer 2103640
        "stop_time" => float 1737588267.6952
        "stop_memory" => integer 2104208
    )
    "kp/4m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6953
        "start_memory" => integer 2106624
        "stop_time" => float 1737588267.6973
        "stop_memory" => integer 2107216
    )
    "kp/4n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6981
        "start_memory" => integer 2121568
        "stop_time" => float 1737588267.6998
        "stop_memory" => integer 2122136
    )
    "kp/4o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.6998
        "start_memory" => integer 2124552
        "stop_time" => float 1737588267.7017
        "stop_memory" => integer 2125144
    )
    "kp/4p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7025
        "start_memory" => integer 2139400
        "stop_time" => float 1737588267.7043
        "stop_memory" => integer 2139968
    )
    "kp/4q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7044
        "start_memory" => integer 2142384
        "stop_time" => float 1737588267.7063
        "stop_memory" => integer 2142976
    )
    "kp/4r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7071
        "start_memory" => integer 2157232
        "stop_time" => float 1737588267.7088
        "stop_memory" => integer 2157800
    )
    "kp/4s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7089
        "start_memory" => integer 2160216
        "stop_time" => float 1737588267.7108
        "stop_memory" => integer 2160808
    )
    "kp/4t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7115
        "start_memory" => integer 2175048
        "stop_time" => float 1737588267.7131
        "stop_memory" => integer 2175616
    )
    "kp/4u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7132
        "start_memory" => integer 2178032
        "stop_time" => float 1737588267.7152
        "stop_memory" => integer 2178624
    )
    "kp/4v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.716
        "start_memory" => integer 2192880
        "stop_time" => float 1737588267.7177
        "stop_memory" => integer 2193448
    )
    "kp/50" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7177
        "start_memory" => integer 2195864
        "stop_time" => float 1737588267.7197
        "stop_memory" => integer 2196456
    )
    "kp/51" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7205
        "start_memory" => integer 2210728
        "stop_time" => float 1737588267.7222
        "stop_memory" => integer 2211296
    )
    "kp/52" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7223
        "start_memory" => integer 2213712
        "stop_time" => float 1737588267.7241
        "stop_memory" => integer 2214304
    )
    "kp/53" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7249
        "start_memory" => integer 2228616
        "stop_time" => float 1737588267.7266
        "stop_memory" => integer 2229184
    )
    "kp/54" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7267
        "start_memory" => integer 2231600
        "stop_time" => float 1737588267.7286
        "stop_memory" => integer 2232192
    )
    "kp/55" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7293
        "start_memory" => integer 2246464
        "stop_time" => float 1737588267.731
        "stop_memory" => integer 2247032
    )
    "kp/56" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.731
        "start_memory" => integer 2249448
        "stop_time" => float 1737588267.7324
        "stop_memory" => integer 2250040
    )
    "kp/57" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7331
        "start_memory" => integer 2264440
        "stop_time" => float 1737588267.7349
        "stop_memory" => integer 2265008
    )
    "kp/58" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.735
        "start_memory" => integer 2267424
        "stop_time" => float 1737588267.7369
        "stop_memory" => integer 2268016
    )
    "kp/59" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7376
        "start_memory" => integer 2282304
        "stop_time" => float 1737588267.7393
        "stop_memory" => integer 2282872
    )
    "kp/5a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7394
        "start_memory" => integer 2285288
        "stop_time" => float 1737588267.7413
        "stop_memory" => integer 2285880
    )
    "kp/5b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.742
        "start_memory" => integer 2300152
        "stop_time" => float 1737588267.7438
        "stop_memory" => integer 2300720
    )
    "kp/5c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7438
        "start_memory" => integer 2303136
        "stop_time" => float 1737588267.7459
        "stop_memory" => integer 2303728
    )
    "kp/5d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7467
        "start_memory" => integer 2318000
        "stop_time" => float 1737588267.7485
        "stop_memory" => integer 2318568
    )
    "kp/5e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7485
        "start_memory" => integer 2320984
        "stop_time" => float 1737588267.7505
        "stop_memory" => integer 2321576
    )
    "kp/5f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7511
        "start_memory" => integer 2335832
        "stop_time" => float 1737588267.753
        "stop_memory" => integer 2336400
    )
    "kp/5g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7531
        "start_memory" => integer 2338816
        "stop_time" => float 1737588267.755
        "stop_memory" => integer 2339408
    )
    "kp/5h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7558
        "start_memory" => integer 2353664
        "stop_time" => float 1737588267.7575
        "stop_memory" => integer 2354232
    )
    "kp/5i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7576
        "start_memory" => integer 2356648
        "stop_time" => float 1737588267.7596
        "stop_memory" => integer 2357240
    )
    "kp/5j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7603
        "start_memory" => integer 2371512
        "stop_time" => float 1737588267.762
        "stop_memory" => integer 2372080
    )
    "kp/5k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7621
        "start_memory" => integer 2374496
        "stop_time" => float 1737588267.7641
        "stop_memory" => integer 2375088
    )
    "kp/5l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7648
        "start_memory" => integer 2389344
        "stop_time" => float 1737588267.7665
        "stop_memory" => integer 2389912
    )
    "kp/5m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7666
        "start_memory" => integer 2392328
        "stop_time" => float 1737588267.7685
        "stop_memory" => integer 2392920
    )
    "kp/5n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.77
        "start_memory" => integer 2407416
        "stop_time" => float 1737588267.7717
        "stop_memory" => integer 2407984
    )
    "kp/5o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7718
        "start_memory" => integer 2410400
        "stop_time" => float 1737588267.7737
        "stop_memory" => integer 2410992
    )
    "kp/5p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7762
        "start_memory" => integer 2420112
        "stop_time" => float 1737588267.7771
        "stop_memory" => integer 2420664
    )
    "kp/5q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7772
        "start_memory" => integer 2423024
        "stop_time" => float 1737588267.7783
        "stop_memory" => integer 2423608
    )
    "kp/5r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.779
        "start_memory" => integer 2447544
        "stop_time" => float 1737588267.7802
        "stop_memory" => integer 2448120
    )
    "kp/5s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7803
        "start_memory" => integer 2450496
        "stop_time" => float 1737588267.7815
        "stop_memory" => integer 2451088
    )
    "kp/5t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7824
        "start_memory" => integer 2478800
        "stop_time" => float 1737588267.7838
        "stop_memory" => integer 2479352
    )
    "kp/5u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7838
        "start_memory" => integer 2481752
        "stop_time" => float 1737588267.7854
        "stop_memory" => integer 2482336
    )
    "kp/5v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7872
        "start_memory" => integer 2491152
        "stop_time" => float 1737588267.7886
        "stop_memory" => integer 2491744
    )
    "kp/60" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7887
        "start_memory" => integer 2494152
        "stop_time" => float 1737588267.7903
        "stop_memory" => integer 2494752
    )
    "kp/61" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7909
        "start_memory" => integer 2506016
        "stop_time" => float 1737588267.7925
        "stop_memory" => integer 2506608
    )
    "kp/62" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7926
        "start_memory" => integer 2509040
        "stop_time" => float 1737588267.7943
        "stop_memory" => integer 2509632
    )
    "kp/63" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7955
        "start_memory" => integer 2522896
        "stop_time" => float 1737588267.7969
        "stop_memory" => integer 2523472
    )
    "kp/64" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.7969
        "start_memory" => integer 2525888
        "stop_time" => float 1737588267.7985
        "stop_memory" => integer 2526488
    )
    "kp/65" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8001
        "start_memory" => integer 2537168
        "stop_time" => float 1737588267.8007
        "stop_memory" => integer 2537760
    )
    "kp/66" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8035
        "start_memory" => integer 2547136
        "stop_time" => float 1737588267.8053
        "stop_memory" => integer 2547712
    )
    "kp/67" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8055
        "start_memory" => integer 2556056
        "stop_time" => float 1737588267.8073
        "stop_memory" => integer 2556640
    )
    "kp/68" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8088
        "start_memory" => integer 2565720
        "stop_time" => float 1737588267.8104
        "stop_memory" => integer 2566272
    )
    "kp/69" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8105
        "start_memory" => integer 2568656
        "stop_time" => float 1737588267.8122
        "stop_memory" => integer 2569240
    )
    "kp/6a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8129
        "start_memory" => integer 2572248
        "stop_time" => float 1737588267.8144
        "stop_memory" => integer 2572808
    )
    "kp/6b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8144
        "start_memory" => integer 2575192
        "stop_time" => float 1737588267.8211
        "stop_memory" => integer 2575776
    )
    "kp/6c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8218
        "start_memory" => integer 2578784
        "stop_time" => float 1737588267.8233
        "stop_memory" => integer 2579344
    )
    "kp/6d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8233
        "start_memory" => integer 2581728
        "stop_time" => float 1737588267.8252
        "stop_memory" => integer 2582312
    )
    "kp/6e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8261
        "start_memory" => integer 2588728
        "stop_time" => float 1737588267.8273
        "stop_memory" => integer 2589288
    )
    "kp/6f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8274
        "start_memory" => integer 2591648
        "stop_time" => float 1737588267.8288
        "stop_memory" => integer 2592216
    )
    "kp/6g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8293
        "start_memory" => integer 2594144
        "stop_time" => float 1737588267.8302
        "stop_memory" => integer 2594728
    )
    "kp/6h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8302
        "start_memory" => integer 2598632
        "stop_time" => float 1737588267.831
        "stop_memory" => integer 2599192
    )
    "kp/6i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.831
        "start_memory" => integer 2601568
        "stop_time" => float 1737588267.832
        "stop_memory" => integer 2602152
    )
    "kp/6j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8325
        "start_memory" => integer 2685616
        "stop_time" => float 1737588267.8336
        "stop_memory" => integer 2686192
    )
    "kp/6k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.834
        "start_memory" => integer 2718688
        "stop_time" => float 1737588267.8349
        "stop_memory" => integer 2719280
    )
    "kp/6l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8353
        "start_memory" => integer 2747048
        "stop_time" => float 1737588267.8359
        "stop_memory" => integer 2747632
    )
    "kp/6m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8359
        "start_memory" => integer 2750032
        "stop_time" => float 1737588267.8365
        "stop_memory" => integer 2750632
    )
    "kp/6n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8369
        "start_memory" => integer 2753800
        "stop_time" => float 1737588267.8376
        "stop_memory" => integer 2754360
    )
    "kp/6o" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8379
        "start_memory" => integer 2780400
        "stop_time" => float 1737588267.8387
        "stop_memory" => integer 2780976
    )
    "kp/6p" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8389
        "start_memory" => integer 2809976
        "stop_time" => float 1737588267.8398
        "stop_memory" => integer 2810568
    )
    "kp/6q" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.84
        "start_memory" => integer 2837248
        "stop_time" => float 1737588267.8409
        "stop_memory" => integer 2837784
    )
    "kp/6r" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8409
        "start_memory" => integer 2840136
        "stop_time" => float 1737588267.8419
        "stop_memory" => integer 2840712
    )
    "kp/6s" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.843
        "start_memory" => integer 2852592
        "stop_time" => float 1737588267.8439
        "stop_memory" => integer 2853208
    )
    "kp/6t" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8439
        "start_memory" => integer 2855864
        "stop_time" => float 1737588267.8449
        "stop_memory" => integer 2856456
    )
    "kp/6u" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8461
        "start_memory" => integer 2876008
        "stop_time" => float 1737588267.8472
        "stop_memory" => integer 2876584
    )
    "kp/6v" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8472
        "start_memory" => integer 2879016
        "stop_time" => float 1737588267.8484
        "stop_memory" => integer 2879616
    )
    "kp/70" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8505
        "start_memory" => integer 2895872
        "stop_time" => float 1737588267.8514
        "stop_memory" => integer 2896416
    )
    "kp/71" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8514
        "start_memory" => integer 2898784
        "stop_time" => float 1737588267.8524
        "stop_memory" => integer 2899368
    )
    "kp/72" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8527
        "start_memory" => integer 2903800
        "stop_time" => float 1737588267.8535
        "stop_memory" => integer 2904360
    )
    "kp/73" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8535
        "start_memory" => integer 2906720
        "stop_time" => float 1737588267.8546
        "stop_memory" => integer 2907304
    )
    "kp/74" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8548
        "start_memory" => integer 2926312
        "stop_time" => float 1737588267.8558
        "stop_memory" => integer 2926888
    )
    "kp/75" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8559
        "start_memory" => integer 2929280
        "stop_time" => float 1737588267.857
        "stop_memory" => integer 2929872
    )
    "kp/76" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8573
        "start_memory" => integer 2948072
        "stop_time" => float 1737588267.8578
        "stop_memory" => integer 2948656
    )
    "kp/77" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8578
        "start_memory" => integer 2951064
        "stop_time" => float 1737588267.8585
        "stop_memory" => integer 2951664
    )
    "kp/78" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.859
        "start_memory" => integer 2974184
        "stop_time" => float 1737588267.86
        "stop_memory" => integer 2974744
    )
    "kp/79" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.86
        "start_memory" => integer 2977160
        "stop_time" => float 1737588267.8611
        "stop_memory" => integer 2977752
    )
    "kp/7a" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8614
        "start_memory" => integer 2995896
        "stop_time" => float 1737588267.8622
        "stop_memory" => integer 2996432
    )
    "kp/7b" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8623
        "start_memory" => integer 2998776
        "stop_time" => float 1737588267.8632
        "stop_memory" => integer 2999352
    )
    "kp/7c" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8636
        "start_memory" => integer 3018520
        "stop_time" => float 1737588267.8644
        "stop_memory" => integer 3019088
    )
    "kp/7d" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8645
        "start_memory" => integer 3021448
        "stop_time" => float 1737588267.8655
        "stop_memory" => integer 3022032
    )
    "kp/7e" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8679
        "start_memory" => integer 3028440
        "stop_time" => float 1737588267.8688
        "stop_memory" => integer 3029000
    )
    "kp/7f" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8688
        "start_memory" => integer 3031360
        "stop_time" => float 1737588267.8698
        "stop_memory" => integer 3031928
    )
    "kp/7g" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8701
        "start_memory" => integer 3049368
        "stop_time" => float 1737588267.8709
        "stop_memory" => integer 3049936
    )
    "kp/7h" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.871
        "start_memory" => integer 3052320
        "stop_time" => float 1737588267.872
        "stop_memory" => integer 3052904
    )
    "kp/7i" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8723
        "start_memory" => integer 3081552
        "stop_time" => float 1737588267.8733
        "stop_memory" => integer 3082128
    )
    "kp/7j" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8734
        "start_memory" => integer 3084552
        "stop_time" => float 1737588267.8746
        "stop_memory" => integer 3085144
    )
    "kp/7k" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8752
        "start_memory" => integer 3102400
        "stop_time" => float 1737588267.8762
        "stop_memory" => integer 3102984
    )
    "kp/7l" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8763
        "start_memory" => integer 3068568
        "stop_time" => float 1737588267.8772
        "stop_memory" => integer 3070528
    )
    "kp/7m" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8775
        "start_memory" => integer 3094736
        "stop_time" => float 1737588267.8784
        "stop_memory" => integer 3096400
    )
    "kp/7n" => array(6) (
        "group" => string(6) "kohana"
        "name" => string(9) "find_file"
        "start_time" => float 1737588267.8784
        "start_memory" => integer 3095984
        "stop_time" => float 1737588267.8792
        "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'],
	);
}