Provides simple benchmarking and profiling. To display the statistics that
have been collected, load the profiler/stats
View:
echo View::factory('profiler/stats');
Class declared in SYSPATH/classes/profiler.php on line 3.
integer
$rollovermaximium number of application stats to keep
integer 1000
array
$_markscollected benchmarks
array(277) ( "kp/0" => array(6) ( "group" => string(8) "requests" "name" => string(20) ""guide/api/Profiler"" "start_time" => float 1737595378.492 "start_memory" => integer 569000 "stop_time" => bool FALSE "stop_memory" => bool FALSE ) "kp/1" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.492 "start_memory" => integer 571168 "stop_time" => float 1737595378.4931 "stop_memory" => integer 571832 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.4931 "start_memory" => integer 574256 "stop_time" => float 1737595378.4944 "stop_memory" => integer 574864 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.4944 "start_memory" => integer 583080 "stop_time" => float 1737595378.4958 "stop_memory" => integer 583632 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.4958 "start_memory" => integer 586048 "stop_time" => float 1737595378.4971 "stop_memory" => integer 586640 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.4971 "start_memory" => integer 590696 "stop_time" => float 1737595378.4981 "stop_memory" => integer 591248 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.4981 "start_memory" => integer 593632 "stop_time" => float 1737595378.4995 "stop_memory" => integer 594216 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.4996 "start_memory" => integer 605488 "stop_time" => float 1737595378.5006 "stop_memory" => integer 606048 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5006 "start_memory" => integer 608416 "stop_time" => float 1737595378.502 "stop_memory" => integer 609064 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5022 "start_memory" => integer 626528 "stop_time" => float 1737595378.5035 "stop_memory" => integer 627104 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5035 "start_memory" => integer 629496 "stop_time" => float 1737595378.505 "stop_memory" => integer 630072 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5051 "start_memory" => integer 642248 "stop_time" => float 1737595378.5067 "stop_memory" => integer 642792 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5067 "start_memory" => integer 645136 "stop_time" => float 1737595378.5083 "stop_memory" => integer 645712 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5084 "start_memory" => integer 658600 "stop_time" => float 1737595378.5098 "stop_memory" => integer 659200 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5099 "start_memory" => integer 660280 "stop_time" => float 1737595378.5114 "stop_memory" => integer 660816 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5115 "start_memory" => integer 663168 "stop_time" => float 1737595378.5128 "stop_memory" => integer 663744 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5129 "start_memory" => integer 668416 "stop_time" => float 1737595378.5139 "stop_memory" => integer 669096 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5139 "start_memory" => integer 671440 "stop_time" => float 1737595378.5153 "stop_memory" => integer 672016 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5154 "start_memory" => integer 695120 "stop_time" => float 1737595378.5164 "stop_memory" => integer 695720 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5164 "start_memory" => integer 698120 "stop_time" => float 1737595378.5177 "stop_memory" => integer 698720 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5177 "start_memory" => integer 707872 "stop_time" => float 1737595378.5189 "stop_memory" => integer 708376 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5189 "start_memory" => integer 709016 "stop_time" => float 1737595378.5199 "stop_memory" => integer 709592 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5202 "start_memory" => integer 863400 "stop_time" => float 1737595378.5213 "stop_memory" => integer 863984 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5213 "start_memory" => integer 866384 "stop_time" => float 1737595378.5225 "stop_memory" => integer 866984 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5225 "start_memory" => integer 868000 "stop_time" => float 1737595378.5236 "stop_memory" => integer 868576 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5236 "start_memory" => integer 870976 "stop_time" => float 1737595378.5248 "stop_memory" => integer 871576 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5248 "start_memory" => integer 878240 "stop_time" => float 1737595378.5257 "stop_memory" => integer 878800 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5257 "start_memory" => integer 881168 "stop_time" => float 1737595378.527 "stop_memory" => integer 881760 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5271 "start_memory" => integer 905960 "stop_time" => float 1737595378.5282 "stop_memory" => integer 906496 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5283 "start_memory" => integer 908840 "stop_time" => float 1737595378.5295 "stop_memory" => integer 909416 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595378.5302 "start_memory" => integer 930280 "stop_time" => float 1737595378.5315 "stop_memory" => integer 930880 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.6984 "start_memory" => integer 975248 "stop_time" => float 1737595379.6988 "stop_memory" => integer 975824 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.6988 "start_memory" => integer 978176 "stop_time" => float 1737595379.6991 "stop_memory" => integer 979016 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.6996 "start_memory" => integer 990584 "stop_time" => float 1737595379.6999 "stop_memory" => integer 991160 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7 "start_memory" => integer 993552 "stop_time" => float 1737595379.7003 "stop_memory" => integer 994144 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7008 "start_memory" => integer 1005992 "stop_time" => float 1737595379.7021 "stop_memory" => integer 1006560 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7022 "start_memory" => integer 1008936 "stop_time" => float 1737595379.7035 "stop_memory" => integer 1009512 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7041 "start_memory" => integer 1021656 "stop_time" => float 1737595379.7048 "stop_memory" => integer 1022248 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7048 "start_memory" => integer 1028112 "stop_time" => float 1737595379.7054 "stop_memory" => integer 1028680 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7055 "start_memory" => integer 1031072 "stop_time" => float 1737595379.7062 "stop_memory" => integer 1031664 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7065 "start_memory" => integer 1040536 "stop_time" => float 1737595379.7071 "stop_memory" => integer 1041136 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7072 "start_memory" => integer 1047456 "stop_time" => float 1737595379.7078 "stop_memory" => integer 1048032 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.708 "start_memory" => integer 1053104 "stop_time" => float 1737595379.7085 "stop_memory" => integer 1053704 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7087 "start_memory" => integer 1059192 "stop_time" => float 1737595379.7092 "stop_memory" => integer 1059768 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7093 "start_memory" => integer 1068304 "stop_time" => float 1737595379.7098 "stop_memory" => integer 1068888 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.71 "start_memory" => integer 1074272 "stop_time" => float 1737595379.7105 "stop_memory" => integer 1074856 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7107 "start_memory" => integer 1081904 "stop_time" => float 1737595379.7112 "stop_memory" => integer 1082504 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7113 "start_memory" => integer 1089696 "stop_time" => float 1737595379.7118 "stop_memory" => integer 1090288 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.712 "start_memory" => integer 1096776 "stop_time" => float 1737595379.7126 "stop_memory" => integer 1097368 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7128 "start_memory" => integer 1103368 "stop_time" => float 1737595379.7135 "stop_memory" => integer 1103960 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7137 "start_memory" => integer 1140256 "stop_time" => float 1737595379.7142 "stop_memory" => integer 1140832 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7144 "start_memory" => integer 1148872 "stop_time" => float 1737595379.7148 "stop_memory" => integer 1149472 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.715 "start_memory" => integer 1156896 "stop_time" => float 1737595379.7157 "stop_memory" => integer 1157472 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7159 "start_memory" => integer 1166840 "stop_time" => float 1737595379.7165 "stop_memory" => integer 1167424 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7166 "start_memory" => integer 1176104 "stop_time" => float 1737595379.717 "stop_memory" => integer 1176656 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.717 "start_memory" => integer 1179016 "stop_time" => float 1737595379.7174 "stop_memory" => integer 1179600 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7175 "start_memory" => integer 1192408 "stop_time" => float 1737595379.7189 "stop_memory" => integer 1192968 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.719 "start_memory" => integer 1195328 "stop_time" => float 1737595379.7205 "stop_memory" => integer 1195896 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7222 "start_memory" => integer 1240224 "stop_time" => float 1737595379.7235 "stop_memory" => integer 1240808 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7287 "start_memory" => integer 1240712 "stop_time" => float 1737595379.7291 "stop_memory" => integer 1241288 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7292 "start_memory" => integer 1243696 "stop_time" => float 1737595379.7297 "stop_memory" => integer 1244288 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7297 "start_memory" => integer 1252888 "stop_time" => float 1737595379.7301 "stop_memory" => integer 1253472 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7302 "start_memory" => integer 1255880 "stop_time" => float 1737595379.7307 "stop_memory" => integer 1256480 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.734 "start_memory" => integer 1264488 "stop_time" => float 1737595379.7345 "stop_memory" => integer 1265064 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7346 "start_memory" => integer 1267488 "stop_time" => float 1737595379.7351 "stop_memory" => integer 1268600 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7355 "start_memory" => integer 1282992 "stop_time" => float 1737595379.7359 "stop_memory" => integer 1283552 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.736 "start_memory" => integer 1285944 "stop_time" => float 1737595379.7364 "stop_memory" => integer 1286536 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7365 "start_memory" => integer 1296704 "stop_time" => float 1737595379.7369 "stop_memory" => integer 1297288 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7369 "start_memory" => integer 1299704 "stop_time" => float 1737595379.7373 "stop_memory" => integer 1300304 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.741 "start_memory" => integer 1308928 "stop_time" => float 1737595379.7415 "stop_memory" => integer 1309504 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7416 "start_memory" => integer 1311928 "stop_time" => float 1737595379.742 "stop_memory" => integer 1312512 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.752 "start_memory" => integer 1334680 "stop_time" => float 1737595379.7524 "stop_memory" => integer 1335264 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7524 "start_memory" => integer 1337688 "stop_time" => float 1737595379.7528 "stop_memory" => integer 1338288 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7529 "start_memory" => integer 1348224 "stop_time" => float 1737595379.7533 "stop_memory" => integer 1348784 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7533 "start_memory" => integer 1351176 "stop_time" => float 1737595379.7537 "stop_memory" => integer 1351768 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7543 "start_memory" => integer 1359952 "stop_time" => float 1737595379.7547 "stop_memory" => integer 1360520 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7547 "start_memory" => integer 1362904 "stop_time" => float 1737595379.7553 "stop_memory" => integer 1363496 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7563 "start_memory" => integer 1377256 "stop_time" => float 1737595379.7567 "stop_memory" => integer 1377840 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7567 "start_memory" => integer 1380240 "stop_time" => float 1737595379.7572 "stop_memory" => integer 1380824 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7608 "start_memory" => integer 1393888 "stop_time" => float 1737595379.762 "stop_memory" => integer 1394424 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7621 "start_memory" => integer 1397808 "stop_time" => float 1737595379.7637 "stop_memory" => integer 1398384 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7653 "start_memory" => integer 1401048 "stop_time" => float 1737595379.766 "stop_memory" => integer 1401648 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.766 "start_memory" => integer 1404320 "stop_time" => float 1737595379.7668 "stop_memory" => integer 1404920 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7669 "start_memory" => integer 1407624 "stop_time" => float 1737595379.7679 "stop_memory" => integer 1408232 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.768 "start_memory" => integer 1412792 "stop_time" => float 1737595379.7687 "stop_memory" => integer 1413376 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7687 "start_memory" => integer 1416088 "stop_time" => float 1737595379.7696 "stop_memory" => integer 1416696 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7697 "start_memory" => integer 1420488 "stop_time" => float 1737595379.7712 "stop_memory" => integer 1421040 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7724 "start_memory" => integer 1425968 "stop_time" => float 1737595379.7734 "stop_memory" => integer 1426576 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7765 "start_memory" => integer 1431840 "stop_time" => float 1737595379.7771 "stop_memory" => integer 1432432 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.778 "start_memory" => integer 1438224 "stop_time" => float 1737595379.7782 "stop_memory" => integer 1438800 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7795 "start_memory" => integer 1442600 "stop_time" => float 1737595379.7801 "stop_memory" => integer 1443168 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7802 "start_memory" => integer 1445544 "stop_time" => float 1737595379.7809 "stop_memory" => integer 1446136 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7821 "start_memory" => integer 1491512 "stop_time" => float 1737595379.7827 "stop_memory" => integer 1492096 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7828 "start_memory" => integer 1494520 "stop_time" => float 1737595379.7836 "stop_memory" => integer 1495120 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.784 "start_memory" => integer 1509848 "stop_time" => float 1737595379.7848 "stop_memory" => integer 1510440 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7848 "start_memory" => integer 1512872 "stop_time" => float 1737595379.7855 "stop_memory" => integer 1513464 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.787 "start_memory" => integer 1520568 "stop_time" => float 1737595379.7877 "stop_memory" => integer 1521144 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7878 "start_memory" => integer 1523560 "stop_time" => float 1737595379.7886 "stop_memory" => integer 1524160 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7892 "start_memory" => integer 1568536 "stop_time" => float 1737595379.79 "stop_memory" => integer 1569128 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7901 "start_memory" => integer 1571560 "stop_time" => float 1737595379.7909 "stop_memory" => integer 1572168 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7909 "start_memory" => integer 1576648 "stop_time" => float 1737595379.7915 "stop_memory" => integer 1577216 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7916 "start_memory" => integer 1579624 "stop_time" => float 1737595379.7924 "stop_memory" => integer 1580224 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7932 "start_memory" => integer 1607808 "stop_time" => float 1737595379.7941 "stop_memory" => integer 1608384 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7941 "start_memory" => integer 1610792 "stop_time" => float 1737595379.7951 "stop_memory" => integer 1611392 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7958 "start_memory" => integer 1634056 "stop_time" => float 1737595379.7966 "stop_memory" => integer 1634632 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7967 "start_memory" => integer 1637032 "stop_time" => float 1737595379.7975 "stop_memory" => integer 1637632 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.7982 "start_memory" => integer 1649960 "stop_time" => float 1737595379.799 "stop_memory" => integer 1650552 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.799 "start_memory" => integer 1652992 "stop_time" => float 1737595379.7999 "stop_memory" => integer 1653600 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8006 "start_memory" => integer 1669560 "stop_time" => float 1737595379.8014 "stop_memory" => integer 1670160 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8014 "start_memory" => integer 1672648 "stop_time" => float 1737595379.8024 "stop_memory" => integer 1673264 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8024 "start_memory" => integer 1677824 "stop_time" => float 1737595379.8032 "stop_memory" => integer 1678416 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8032 "start_memory" => integer 1680872 "stop_time" => float 1737595379.8043 "stop_memory" => integer 1681488 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.805 "start_memory" => integer 1727792 "stop_time" => float 1737595379.8058 "stop_memory" => integer 1728384 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8059 "start_memory" => integer 1730872 "stop_time" => float 1737595379.8069 "stop_memory" => integer 1731488 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8076 "start_memory" => integer 1751688 "stop_time" => float 1737595379.8085 "stop_memory" => integer 1752280 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8085 "start_memory" => integer 1754760 "stop_time" => float 1737595379.8095 "stop_memory" => integer 1755360 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8103 "start_memory" => integer 1774248 "stop_time" => float 1737595379.8111 "stop_memory" => integer 1774848 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8112 "start_memory" => integer 1777320 "stop_time" => float 1737595379.8121 "stop_memory" => integer 1777936 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8128 "start_memory" => integer 1821032 "stop_time" => float 1737595379.8136 "stop_memory" => integer 1821624 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8137 "start_memory" => integer 1824112 "stop_time" => float 1737595379.8146 "stop_memory" => integer 1824728 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.816 "start_memory" => integer 1852960 "stop_time" => float 1737595379.8168 "stop_memory" => integer 1853536 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8169 "start_memory" => integer 1855992 "stop_time" => float 1737595379.8176 "stop_memory" => integer 1856600 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8183 "start_memory" => integer 1872216 "stop_time" => float 1737595379.8195 "stop_memory" => integer 1872736 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8195 "start_memory" => integer 1875096 "stop_time" => float 1737595379.8211 "stop_memory" => integer 1875672 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8217 "start_memory" => integer 1890792 "stop_time" => float 1737595379.8224 "stop_memory" => integer 1891360 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8224 "start_memory" => integer 1893720 "stop_time" => float 1737595379.8231 "stop_memory" => integer 1894304 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8259 "start_memory" => integer 1901232 "stop_time" => float 1737595379.8273 "stop_memory" => integer 1901792 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8274 "start_memory" => integer 1904152 "stop_time" => float 1737595379.8289 "stop_memory" => integer 1904736 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.831 "start_memory" => integer 1911632 "stop_time" => float 1737595379.8325 "stop_memory" => integer 1913200 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8326 "start_memory" => integer 1915560 "stop_time" => float 1737595379.834 "stop_memory" => integer 1916136 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8345 "start_memory" => integer 1918416 "stop_time" => float 1737595379.8359 "stop_memory" => integer 1918968 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.836 "start_memory" => integer 1921312 "stop_time" => float 1737595379.8376 "stop_memory" => integer 1921888 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8381 "start_memory" => integer 1928328 "stop_time" => float 1737595379.8396 "stop_memory" => integer 1928880 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8396 "start_memory" => integer 1931224 "stop_time" => float 1737595379.8412 "stop_memory" => integer 1931800 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8422 "start_memory" => integer 1942880 "stop_time" => float 1737595379.8439 "stop_memory" => integer 1943448 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8439 "start_memory" => integer 1945832 "stop_time" => float 1737595379.8454 "stop_memory" => integer 1946416 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8474 "start_memory" => integer 1952768 "stop_time" => float 1737595379.8487 "stop_memory" => integer 1953312 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8488 "start_memory" => integer 1955656 "stop_time" => float 1737595379.8502 "stop_memory" => integer 1956232 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8513 "start_memory" => integer 1960536 "stop_time" => float 1737595379.8532 "stop_memory" => integer 1961104 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8532 "start_memory" => integer 1963488 "stop_time" => float 1737595379.8553 "stop_memory" => integer 1964072 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8564 "start_memory" => integer 1978864 "stop_time" => float 1737595379.8582 "stop_memory" => integer 1979440 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8583 "start_memory" => integer 1981832 "stop_time" => float 1737595379.8599 "stop_memory" => integer 1982424 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.861 "start_memory" => integer 1997520 "stop_time" => float 1737595379.8629 "stop_memory" => integer 1998088 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.863 "start_memory" => integer 2000504 "stop_time" => float 1737595379.865 "stop_memory" => integer 2001096 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8657 "start_memory" => integer 2015848 "stop_time" => float 1737595379.8673 "stop_memory" => integer 2016416 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8674 "start_memory" => integer 2018832 "stop_time" => float 1737595379.8695 "stop_memory" => integer 2019424 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8704 "start_memory" => integer 2034176 "stop_time" => float 1737595379.8724 "stop_memory" => integer 2034744 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8725 "start_memory" => integer 2037160 "stop_time" => float 1737595379.8747 "stop_memory" => integer 2037752 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8756 "start_memory" => integer 2052520 "stop_time" => float 1737595379.8776 "stop_memory" => integer 2053088 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8777 "start_memory" => integer 2055504 "stop_time" => float 1737595379.88 "stop_memory" => integer 2056096 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8809 "start_memory" => integer 2070848 "stop_time" => float 1737595379.8831 "stop_memory" => integer 2071416 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8831 "start_memory" => integer 2073832 "stop_time" => float 1737595379.8855 "stop_memory" => integer 2074424 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8865 "start_memory" => integer 2089176 "stop_time" => float 1737595379.8888 "stop_memory" => integer 2089744 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8889 "start_memory" => integer 2092160 "stop_time" => float 1737595379.8907 "stop_memory" => integer 2092752 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8916 "start_memory" => integer 2107520 "stop_time" => float 1737595379.8935 "stop_memory" => integer 2108088 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8936 "start_memory" => integer 2110504 "stop_time" => float 1737595379.8959 "stop_memory" => integer 2111096 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8967 "start_memory" => integer 2125848 "stop_time" => float 1737595379.8988 "stop_memory" => integer 2126416 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.8988 "start_memory" => integer 2128832 "stop_time" => float 1737595379.9012 "stop_memory" => integer 2129424 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.902 "start_memory" => integer 2144272 "stop_time" => float 1737595379.9041 "stop_memory" => integer 2144840 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9042 "start_memory" => integer 2147256 "stop_time" => float 1737595379.9064 "stop_memory" => integer 2147848 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9073 "start_memory" => integer 2162600 "stop_time" => float 1737595379.9094 "stop_memory" => integer 2163168 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9095 "start_memory" => integer 2165584 "stop_time" => float 1737595379.9118 "stop_memory" => integer 2166176 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9127 "start_memory" => integer 2180928 "stop_time" => float 1737595379.9147 "stop_memory" => integer 2181496 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9148 "start_memory" => integer 2183912 "stop_time" => float 1737595379.9171 "stop_memory" => integer 2184504 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9179 "start_memory" => integer 2199240 "stop_time" => float 1737595379.92 "stop_memory" => integer 2199808 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9201 "start_memory" => integer 2202224 "stop_time" => float 1737595379.9223 "stop_memory" => integer 2202816 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9232 "start_memory" => integer 2217576 "stop_time" => float 1737595379.9252 "stop_memory" => integer 2218144 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9253 "start_memory" => integer 2220560 "stop_time" => float 1737595379.9275 "stop_memory" => integer 2221152 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9284 "start_memory" => integer 2235920 "stop_time" => float 1737595379.9304 "stop_memory" => integer 2236488 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9305 "start_memory" => integer 2238904 "stop_time" => float 1737595379.9327 "stop_memory" => integer 2239496 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9336 "start_memory" => integer 2254280 "stop_time" => float 1737595379.9357 "stop_memory" => integer 2254848 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9357 "start_memory" => integer 2257264 "stop_time" => float 1737595379.9379 "stop_memory" => integer 2257856 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9387 "start_memory" => integer 2272624 "stop_time" => float 1737595379.9408 "stop_memory" => integer 2273192 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9409 "start_memory" => integer 2275608 "stop_time" => float 1737595379.943 "stop_memory" => integer 2276200 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9439 "start_memory" => integer 2291096 "stop_time" => float 1737595379.9459 "stop_memory" => integer 2291664 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.946 "start_memory" => integer 2294080 "stop_time" => float 1737595379.9482 "stop_memory" => integer 2294672 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.949 "start_memory" => integer 2309456 "stop_time" => float 1737595379.9508 "stop_memory" => integer 2310024 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9509 "start_memory" => integer 2312440 "stop_time" => float 1737595379.953 "stop_memory" => integer 2313032 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9539 "start_memory" => integer 2327800 "stop_time" => float 1737595379.9558 "stop_memory" => integer 2328368 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9559 "start_memory" => integer 2330784 "stop_time" => float 1737595379.9578 "stop_memory" => integer 2331376 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9585 "start_memory" => integer 2346144 "stop_time" => float 1737595379.9603 "stop_memory" => integer 2346712 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9603 "start_memory" => integer 2349128 "stop_time" => float 1737595379.9623 "stop_memory" => integer 2349720 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9629 "start_memory" => integer 2364472 "stop_time" => float 1737595379.9646 "stop_memory" => integer 2365040 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9647 "start_memory" => integer 2367456 "stop_time" => float 1737595379.9665 "stop_memory" => integer 2368048 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9672 "start_memory" => integer 2382800 "stop_time" => float 1737595379.9689 "stop_memory" => integer 2383368 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.969 "start_memory" => integer 2385784 "stop_time" => float 1737595379.9711 "stop_memory" => integer 2386376 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9718 "start_memory" => integer 2401144 "stop_time" => float 1737595379.9735 "stop_memory" => integer 2401712 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9736 "start_memory" => integer 2404128 "stop_time" => float 1737595379.9756 "stop_memory" => integer 2404720 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9763 "start_memory" => integer 2419472 "stop_time" => float 1737595379.9782 "stop_memory" => integer 2420040 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9783 "start_memory" => integer 2422456 "stop_time" => float 1737595379.98 "stop_memory" => integer 2423048 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9841 "start_memory" => integer 2438808 "stop_time" => float 1737595379.985 "stop_memory" => integer 2439360 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9851 "start_memory" => integer 2441720 "stop_time" => float 1737595379.9859 "stop_memory" => integer 2442304 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9866 "start_memory" => integer 2466240 "stop_time" => float 1737595379.9875 "stop_memory" => integer 2466816 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9876 "start_memory" => integer 2469192 "stop_time" => float 1737595379.9886 "stop_memory" => integer 2469784 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9892 "start_memory" => integer 2497504 "stop_time" => float 1737595379.9901 "stop_memory" => integer 2498072 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9901 "start_memory" => integer 2500480 "stop_time" => float 1737595379.9911 "stop_memory" => integer 2501072 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9917 "start_memory" => integer 2526288 "stop_time" => float 1737595379.9932 "stop_memory" => integer 2526840 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9933 "start_memory" => integer 2529240 "stop_time" => float 1737595379.9947 "stop_memory" => integer 2529824 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9964 "start_memory" => integer 2538640 "stop_time" => float 1737595379.998 "stop_memory" => integer 2539232 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595379.9981 "start_memory" => integer 2541624 "stop_time" => float 1737595379.9999 "stop_memory" => integer 2542224 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0007 "start_memory" => integer 2553488 "stop_time" => float 1737595380.0024 "stop_memory" => integer 2554080 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0025 "start_memory" => integer 2556512 "stop_time" => float 1737595380.0046 "stop_memory" => integer 2557104 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.007 "start_memory" => integer 2570368 "stop_time" => float 1737595380.0087 "stop_memory" => integer 2570944 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0087 "start_memory" => integer 2573344 "stop_time" => float 1737595380.0103 "stop_memory" => integer 2573944 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.016 "start_memory" => integer 2586592 "stop_time" => float 1737595380.0176 "stop_memory" => integer 2587136 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0177 "start_memory" => integer 2589520 "stop_time" => float 1737595380.0199 "stop_memory" => integer 2590104 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0206 "start_memory" => integer 2593112 "stop_time" => float 1737595380.023 "stop_memory" => integer 2593672 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0231 "start_memory" => integer 2596056 "stop_time" => float 1737595380.0256 "stop_memory" => integer 2596640 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0267 "start_memory" => integer 2601696 "stop_time" => float 1737595380.0284 "stop_memory" => integer 2602256 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0285 "start_memory" => integer 2604640 "stop_time" => float 1737595380.0306 "stop_memory" => integer 2605224 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0319 "start_memory" => integer 2610336 "stop_time" => float 1737595380.0336 "stop_memory" => integer 2610896 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0337 "start_memory" => integer 2613256 "stop_time" => float 1737595380.0357 "stop_memory" => integer 2613824 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0365 "start_memory" => integer 2615816 "stop_time" => float 1737595380.0381 "stop_memory" => integer 2616400 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0382 "start_memory" => integer 2620304 "stop_time" => float 1737595380.0395 "stop_memory" => integer 2620864 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0395 "start_memory" => integer 2623240 "stop_time" => float 1737595380.041 "stop_memory" => integer 2623824 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0417 "start_memory" => integer 2753920 "stop_time" => float 1737595380.0433 "stop_memory" => integer 2754496 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.044 "start_memory" => integer 2802296 "stop_time" => float 1737595380.0457 "stop_memory" => integer 2802888 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0465 "start_memory" => integer 2848720 "stop_time" => float 1737595380.0476 "stop_memory" => integer 2849304 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0477 "start_memory" => integer 2851704 "stop_time" => float 1737595380.0488 "stop_memory" => integer 2852304 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0495 "start_memory" => integer 2855472 "stop_time" => float 1737595380.0509 "stop_memory" => integer 2856032 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0517 "start_memory" => integer 2900136 "stop_time" => float 1737595380.0532 "stop_memory" => integer 2900712 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0538 "start_memory" => integer 2947072 "stop_time" => float 1737595380.0553 "stop_memory" => integer 2947664 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0562 "start_memory" => integer 2992408 "stop_time" => float 1737595380.0579 "stop_memory" => integer 2992944 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.058 "start_memory" => integer 2995296 "stop_time" => float 1737595380.0599 "stop_memory" => integer 2995872 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.062 "start_memory" => integer 3007688 "stop_time" => float 1737595380.0636 "stop_memory" => integer 3008304 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0637 "start_memory" => integer 3010944 "stop_time" => float 1737595380.0656 "stop_memory" => integer 3011536 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0696 "start_memory" => integer 3032256 "stop_time" => float 1737595380.0717 "stop_memory" => integer 3032816 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0718 "start_memory" => integer 3035232 "stop_time" => float 1737595380.0741 "stop_memory" => integer 3035824 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0742 "start_memory" => integer 3039424 "stop_time" => float 1737595380.0762 "stop_memory" => integer 3040008 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0763 "start_memory" => integer 3042440 "stop_time" => float 1737595380.0791 "stop_memory" => integer 3043040 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.082 "start_memory" => integer 3057400 "stop_time" => float 1737595380.0842 "stop_memory" => integer 3057960 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0843 "start_memory" => integer 3060376 "stop_time" => float 1737595380.0866 "stop_memory" => integer 3060968 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0887 "start_memory" => integer 3069640 "stop_time" => float 1737595380.0908 "stop_memory" => integer 3070224 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0909 "start_memory" => integer 3072672 "stop_time" => float 1737595380.0937 "stop_memory" => integer 3073256 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0951 "start_memory" => integer 3081640 "stop_time" => float 1737595380.097 "stop_memory" => integer 3082208 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.0975 "start_memory" => integer 3084840 "stop_time" => float 1737595380.0997 "stop_memory" => integer 3085432 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1034 "start_memory" => integer 3100176 "stop_time" => float 1737595380.1051 "stop_memory" => integer 3100728 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1052 "start_memory" => integer 3103096 "stop_time" => float 1737595380.1072 "stop_memory" => integer 3103680 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1081 "start_memory" => integer 3108112 "stop_time" => float 1737595380.1098 "stop_memory" => integer 3108672 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1099 "start_memory" => integer 3111032 "stop_time" => float 1737595380.1119 "stop_memory" => integer 3111616 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1125 "start_memory" => integer 3132048 "stop_time" => float 1737595380.1144 "stop_memory" => integer 3132624 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1145 "start_memory" => integer 3135016 "stop_time" => float 1737595380.1166 "stop_memory" => integer 3135608 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1173 "start_memory" => integer 3155216 "stop_time" => float 1737595380.1185 "stop_memory" => integer 3155800 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1186 "start_memory" => integer 3158208 "stop_time" => float 1737595380.1197 "stop_memory" => integer 3158808 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1208 "start_memory" => integer 3182776 "stop_time" => float 1737595380.1227 "stop_memory" => integer 3183336 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1228 "start_memory" => integer 3185968 "stop_time" => float 1737595380.125 "stop_memory" => integer 3186560 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1254 "start_memory" => integer 3201304 "stop_time" => float 1737595380.1275 "stop_memory" => integer 3201872 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1276 "start_memory" => integer 3204264 "stop_time" => float 1737595380.1299 "stop_memory" => integer 3204856 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1306 "start_memory" => integer 3224408 "stop_time" => float 1737595380.1323 "stop_memory" => integer 3224944 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1324 "start_memory" => integer 3227288 "stop_time" => float 1737595380.1343 "stop_memory" => integer 3227864 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.135 "start_memory" => integer 3247848 "stop_time" => float 1737595380.1367 "stop_memory" => integer 3248464 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1367 "start_memory" => integer 3251272 "stop_time" => float 1737595380.139 "stop_memory" => integer 3251880 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1392 "start_memory" => integer 3262296 "stop_time" => float 1737595380.1415 "stop_memory" => integer 3262800 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1439 "start_memory" => integer 3272392 "stop_time" => float 1737595380.1453 "stop_memory" => integer 3272960 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1454 "start_memory" => integer 3275368 "stop_time" => float 1737595380.1471 "stop_memory" => integer 3275968 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1477 "start_memory" => integer 3282424 "stop_time" => float 1737595380.1495 "stop_memory" => integer 3283000 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1496 "start_memory" => integer 3285424 "stop_time" => float 1737595380.1511 "stop_memory" => integer 3288072 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1512 "start_memory" => integer 3297272 "stop_time" => float 1737595380.1533 "stop_memory" => integer 3297776 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.155 "start_memory" => integer 3304592 "stop_time" => float 1737595380.1564 "stop_memory" => integer 3305168 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1564 "start_memory" => integer 3307568 "stop_time" => float 1737595380.1579 "stop_memory" => integer 3308168 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1588 "start_memory" => integer 3316696 "stop_time" => float 1737595380.1602 "stop_memory" => integer 3317272 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1602 "start_memory" => integer 3319696 "stop_time" => float 1737595380.1617 "stop_memory" => integer 3320296 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1617 "start_memory" => integer 3325656 "stop_time" => float 1737595380.1637 "stop_memory" => integer 3326160 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1651 "start_memory" => integer 3328456 "stop_time" => float 1737595380.1666 "stop_memory" => integer 3329000 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1667 "start_memory" => integer 3331360 "stop_time" => float 1737595380.1689 "stop_memory" => integer 3331944 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1728 "start_memory" => integer 3339064 "stop_time" => float 1737595380.1742 "stop_memory" => integer 3339640 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1742 "start_memory" => integer 3342224 "stop_time" => float 1737595380.1761 "stop_memory" => integer 3342816 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1764 "start_memory" => integer 3357200 "stop_time" => float 1737595380.1779 "stop_memory" => integer 3357752 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1779 "start_memory" => integer 3360112 "stop_time" => float 1737595380.1796 "stop_memory" => integer 3360680 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1803 "start_memory" => integer 3378120 "stop_time" => float 1737595380.1819 "stop_memory" => integer 3378688 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.182 "start_memory" => integer 3381072 "stop_time" => float 1737595380.1838 "stop_memory" => integer 3381656 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1845 "start_memory" => integer 3398456 "stop_time" => float 1737595380.1861 "stop_memory" => integer 3399032 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1862 "start_memory" => integer 3401456 "stop_time" => float 1737595380.1881 "stop_memory" => integer 3402048 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1892 "start_memory" => integer 3417240 "stop_time" => float 1737595380.1908 "stop_memory" => integer 3417808 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1909 "start_memory" => integer 3420392 "stop_time" => float 1737595380.1928 "stop_memory" => integer 3420984 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1931 "start_memory" => integer 3439408 "stop_time" => float 1737595380.1948 "stop_memory" => integer 3439992 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737595380.1951 "start_memory" => integer 3400784 "stop_time" => float 1737595380.1966 "stop_memory" => integer 3402832 ) )
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();
array
- Execution time, memorypublic 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;
}
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);
string
$token
required - $tokenvoid
public static function delete($token)
{
// Remove the benchmark
unset(Profiler::$_marks[$token]);
}
Gets the min, max, average and total of profiler groups as an array.
$stats = Profiler::group_stats('test');
mixed
$groups
= NULL - Single group name string, or array with group names; all groups by defaultarray
- Min, max, average, totalpublic 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;
}
Returns all the benchmark tokens by group and name as an array.
$groups = Profiler::groups();
array
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;
}
Starts a new benchmark and returns a unique token. The returned token must be used when stopping the benchmark.
$token = Profiler::start('test', 'profiler');
string
$group
required - Group namestring
$name
required - Benchmark namestring
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;
}
Gets the min, max, average and total of a set of tokens as an array.
$stats = Profiler::stats($tokens);
array
$tokens
required - Profiler tokensarray
- Min, max, average, totalpublic 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);
}
Stops a benchmark.
Profiler::stop($token);
string
$token
required - $tokenvoid
public static function stop($token)
{
// Stop the benchmark
Profiler::$_marks[$token]['stop_time'] = microtime(TRUE);
Profiler::$_marks[$token]['stop_memory'] = memory_get_usage();
}
Gets the total execution time and memory usage of a benchmark as a list.
list($time, $memory) = Profiler::total($token);
string
$token
required - $tokenarray
- Execution time, memorypublic 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'],
);
}