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 1734783606.6703 "start_memory" => integer 568256 "stop_time" => bool FALSE "stop_memory" => bool FALSE ) "kp/1" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6703 "start_memory" => integer 570424 "stop_time" => float 1734783606.6715 "stop_memory" => integer 571088 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6715 "start_memory" => integer 573512 "stop_time" => float 1734783606.6729 "stop_memory" => integer 574120 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.673 "start_memory" => integer 582336 "stop_time" => float 1734783606.6749 "stop_memory" => integer 582888 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.675 "start_memory" => integer 585304 "stop_time" => float 1734783606.6769 "stop_memory" => integer 585896 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6769 "start_memory" => integer 589952 "stop_time" => float 1734783606.6782 "stop_memory" => integer 590504 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6783 "start_memory" => integer 592888 "stop_time" => float 1734783606.6797 "stop_memory" => integer 593472 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6798 "start_memory" => integer 604744 "stop_time" => float 1734783606.6811 "stop_memory" => integer 605304 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6811 "start_memory" => integer 607672 "stop_time" => float 1734783606.6826 "stop_memory" => integer 608320 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6827 "start_memory" => integer 625784 "stop_time" => float 1734783606.684 "stop_memory" => integer 626360 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6841 "start_memory" => integer 628752 "stop_time" => float 1734783606.6856 "stop_memory" => integer 629328 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6857 "start_memory" => integer 641504 "stop_time" => float 1734783606.6869 "stop_memory" => integer 642048 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.687 "start_memory" => integer 644392 "stop_time" => float 1734783606.6884 "stop_memory" => integer 644968 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6885 "start_memory" => integer 657856 "stop_time" => float 1734783606.6899 "stop_memory" => integer 658456 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6899 "start_memory" => integer 659536 "stop_time" => float 1734783606.6912 "stop_memory" => integer 660072 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6913 "start_memory" => integer 662424 "stop_time" => float 1734783606.6927 "stop_memory" => integer 663000 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6928 "start_memory" => integer 667672 "stop_time" => float 1734783606.6942 "stop_memory" => integer 668352 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6943 "start_memory" => integer 670696 "stop_time" => float 1734783606.6958 "stop_memory" => integer 671272 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6959 "start_memory" => integer 694376 "stop_time" => float 1734783606.6972 "stop_memory" => integer 694976 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6972 "start_memory" => integer 697376 "stop_time" => float 1734783606.6987 "stop_memory" => integer 697976 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.6987 "start_memory" => integer 707128 "stop_time" => float 1734783606.7 "stop_memory" => integer 707632 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7001 "start_memory" => integer 708272 "stop_time" => float 1734783606.7012 "stop_memory" => integer 708848 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7015 "start_memory" => integer 862640 "stop_time" => float 1734783606.7028 "stop_memory" => integer 863224 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7029 "start_memory" => integer 865624 "stop_time" => float 1734783606.7042 "stop_memory" => integer 866224 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7042 "start_memory" => integer 867240 "stop_time" => float 1734783606.7055 "stop_memory" => integer 867816 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7055 "start_memory" => integer 870216 "stop_time" => float 1734783606.7069 "stop_memory" => integer 870816 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7069 "start_memory" => integer 877480 "stop_time" => float 1734783606.708 "stop_memory" => integer 878040 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7081 "start_memory" => integer 880408 "stop_time" => float 1734783606.7094 "stop_memory" => integer 881000 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7096 "start_memory" => integer 905200 "stop_time" => float 1734783606.7109 "stop_memory" => integer 905736 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7109 "start_memory" => integer 908080 "stop_time" => float 1734783606.7125 "stop_memory" => integer 908656 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783606.7134 "start_memory" => integer 929520 "stop_time" => float 1734783606.7148 "stop_memory" => integer 930120 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.772 "start_memory" => integer 974480 "stop_time" => float 1734783607.7722 "stop_memory" => integer 975056 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7723 "start_memory" => integer 977408 "stop_time" => float 1734783607.7725 "stop_memory" => integer 978248 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.773 "start_memory" => integer 989816 "stop_time" => float 1734783607.7732 "stop_memory" => integer 990392 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7733 "start_memory" => integer 992784 "stop_time" => float 1734783607.7735 "stop_memory" => integer 993376 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7739 "start_memory" => integer 1005224 "stop_time" => float 1734783607.7748 "stop_memory" => integer 1005792 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7748 "start_memory" => integer 1008168 "stop_time" => float 1734783607.7759 "stop_memory" => integer 1008744 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7763 "start_memory" => integer 1020888 "stop_time" => float 1734783607.7768 "stop_memory" => integer 1021480 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7769 "start_memory" => integer 1027344 "stop_time" => float 1734783607.7774 "stop_memory" => integer 1027912 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7774 "start_memory" => integer 1030304 "stop_time" => float 1734783607.7779 "stop_memory" => integer 1030896 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.778 "start_memory" => integer 1039768 "stop_time" => float 1734783607.7785 "stop_memory" => integer 1040368 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7786 "start_memory" => integer 1046688 "stop_time" => float 1734783607.779 "stop_memory" => integer 1047264 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7791 "start_memory" => integer 1052336 "stop_time" => float 1734783607.7797 "stop_memory" => integer 1052936 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7799 "start_memory" => integer 1058424 "stop_time" => float 1734783607.7804 "stop_memory" => integer 1059000 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7805 "start_memory" => integer 1067536 "stop_time" => float 1734783607.7809 "stop_memory" => integer 1068120 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.781 "start_memory" => integer 1073504 "stop_time" => float 1734783607.7815 "stop_memory" => integer 1074088 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7816 "start_memory" => integer 1081136 "stop_time" => float 1734783607.782 "stop_memory" => integer 1081736 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7821 "start_memory" => integer 1088928 "stop_time" => float 1734783607.7826 "stop_memory" => integer 1089520 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7827 "start_memory" => integer 1096008 "stop_time" => float 1734783607.7832 "stop_memory" => integer 1096600 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7834 "start_memory" => integer 1102600 "stop_time" => float 1734783607.7839 "stop_memory" => integer 1103192 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7841 "start_memory" => integer 1139488 "stop_time" => float 1734783607.7846 "stop_memory" => integer 1140064 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7847 "start_memory" => integer 1148104 "stop_time" => float 1734783607.7852 "stop_memory" => integer 1148704 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7853 "start_memory" => integer 1156128 "stop_time" => float 1734783607.7858 "stop_memory" => integer 1156704 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7859 "start_memory" => integer 1166072 "stop_time" => float 1734783607.7865 "stop_memory" => integer 1166656 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7866 "start_memory" => integer 1175336 "stop_time" => float 1734783607.7869 "stop_memory" => integer 1175888 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.787 "start_memory" => integer 1178248 "stop_time" => float 1734783607.7873 "stop_memory" => integer 1178832 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7874 "start_memory" => integer 1191632 "stop_time" => float 1734783607.7885 "stop_memory" => integer 1192192 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7885 "start_memory" => integer 1194552 "stop_time" => float 1734783607.7899 "stop_memory" => integer 1195120 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7913 "start_memory" => integer 1239448 "stop_time" => float 1734783607.7924 "stop_memory" => integer 1240032 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.797 "start_memory" => integer 1239936 "stop_time" => float 1734783607.7974 "stop_memory" => integer 1240512 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7974 "start_memory" => integer 1242920 "stop_time" => float 1734783607.7978 "stop_memory" => integer 1243512 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7979 "start_memory" => integer 1252112 "stop_time" => float 1734783607.7983 "stop_memory" => integer 1252696 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.7983 "start_memory" => integer 1255104 "stop_time" => float 1734783607.7987 "stop_memory" => integer 1255704 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8017 "start_memory" => integer 1263712 "stop_time" => float 1734783607.8022 "stop_memory" => integer 1264288 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8022 "start_memory" => integer 1266712 "stop_time" => float 1734783607.8027 "stop_memory" => integer 1267824 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8031 "start_memory" => integer 1282216 "stop_time" => float 1734783607.8035 "stop_memory" => integer 1282776 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8035 "start_memory" => integer 1285168 "stop_time" => float 1734783607.8039 "stop_memory" => integer 1285760 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.804 "start_memory" => integer 1295928 "stop_time" => float 1734783607.8044 "stop_memory" => integer 1296512 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8044 "start_memory" => integer 1298928 "stop_time" => float 1734783607.8048 "stop_memory" => integer 1299528 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8079 "start_memory" => integer 1308152 "stop_time" => float 1734783607.8082 "stop_memory" => integer 1308728 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8083 "start_memory" => integer 1311152 "stop_time" => float 1734783607.8087 "stop_memory" => integer 1311736 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8162 "start_memory" => integer 1333904 "stop_time" => float 1734783607.8167 "stop_memory" => integer 1334488 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8167 "start_memory" => integer 1336912 "stop_time" => float 1734783607.8172 "stop_memory" => integer 1337512 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8173 "start_memory" => integer 1347448 "stop_time" => float 1734783607.8177 "stop_memory" => integer 1348008 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8177 "start_memory" => integer 1350400 "stop_time" => float 1734783607.8181 "stop_memory" => integer 1350992 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8185 "start_memory" => integer 1359152 "stop_time" => float 1734783607.8189 "stop_memory" => integer 1359720 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.819 "start_memory" => integer 1362104 "stop_time" => float 1734783607.8195 "stop_memory" => integer 1362696 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8201 "start_memory" => integer 1376456 "stop_time" => float 1734783607.8205 "stop_memory" => integer 1377040 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8206 "start_memory" => integer 1379440 "stop_time" => float 1734783607.821 "stop_memory" => integer 1380024 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8243 "start_memory" => integer 1393080 "stop_time" => float 1734783607.8254 "stop_memory" => integer 1393616 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8255 "start_memory" => integer 1397000 "stop_time" => float 1734783607.8269 "stop_memory" => integer 1397576 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8283 "start_memory" => integer 1400248 "stop_time" => float 1734783607.8289 "stop_memory" => integer 1400848 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.829 "start_memory" => integer 1403520 "stop_time" => float 1734783607.8297 "stop_memory" => integer 1404120 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8298 "start_memory" => integer 1406824 "stop_time" => float 1734783607.8305 "stop_memory" => integer 1407432 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8305 "start_memory" => integer 1411992 "stop_time" => float 1734783607.8312 "stop_memory" => integer 1412576 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8312 "start_memory" => integer 1415288 "stop_time" => float 1734783607.832 "stop_memory" => integer 1415896 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.832 "start_memory" => integer 1419688 "stop_time" => float 1734783607.8333 "stop_memory" => integer 1420240 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8341 "start_memory" => integer 1425168 "stop_time" => float 1734783607.8348 "stop_memory" => integer 1425776 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8372 "start_memory" => integer 1431040 "stop_time" => float 1734783607.8377 "stop_memory" => integer 1431632 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8385 "start_memory" => integer 1437424 "stop_time" => float 1734783607.8386 "stop_memory" => integer 1438000 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8399 "start_memory" => integer 1441800 "stop_time" => float 1734783607.8405 "stop_memory" => integer 1442368 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8405 "start_memory" => integer 1444744 "stop_time" => float 1734783607.8412 "stop_memory" => integer 1445336 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8424 "start_memory" => integer 1490712 "stop_time" => float 1734783607.8431 "stop_memory" => integer 1491296 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8431 "start_memory" => integer 1493720 "stop_time" => float 1734783607.8438 "stop_memory" => integer 1494320 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8442 "start_memory" => integer 1509048 "stop_time" => float 1734783607.8448 "stop_memory" => integer 1509640 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8448 "start_memory" => integer 1512072 "stop_time" => float 1734783607.8456 "stop_memory" => integer 1512664 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8466 "start_memory" => integer 1519784 "stop_time" => float 1734783607.8472 "stop_memory" => integer 1520360 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8472 "start_memory" => integer 1522776 "stop_time" => float 1734783607.848 "stop_memory" => integer 1523376 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8485 "start_memory" => integer 1567728 "stop_time" => float 1734783607.8492 "stop_memory" => integer 1568320 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8493 "start_memory" => integer 1570752 "stop_time" => float 1734783607.8501 "stop_memory" => integer 1571360 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8501 "start_memory" => integer 1575840 "stop_time" => float 1734783607.8507 "stop_memory" => integer 1576408 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8507 "start_memory" => integer 1578816 "stop_time" => float 1734783607.8515 "stop_memory" => integer 1579416 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8521 "start_memory" => integer 1607008 "stop_time" => float 1734783607.8528 "stop_memory" => integer 1607584 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8529 "start_memory" => integer 1609992 "stop_time" => float 1734783607.8537 "stop_memory" => integer 1610592 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8542 "start_memory" => integer 1633256 "stop_time" => float 1734783607.8548 "stop_memory" => integer 1633832 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8548 "start_memory" => integer 1636232 "stop_time" => float 1734783607.8555 "stop_memory" => integer 1636832 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.856 "start_memory" => integer 1649160 "stop_time" => float 1734783607.8568 "stop_memory" => integer 1649752 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8568 "start_memory" => integer 1652192 "stop_time" => float 1734783607.8577 "stop_memory" => integer 1652800 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8583 "start_memory" => integer 1668760 "stop_time" => float 1734783607.8591 "stop_memory" => integer 1669360 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8591 "start_memory" => integer 1671848 "stop_time" => float 1734783607.86 "stop_memory" => integer 1672464 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8601 "start_memory" => integer 1677024 "stop_time" => float 1734783607.8609 "stop_memory" => integer 1677616 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8609 "start_memory" => integer 1680072 "stop_time" => float 1734783607.8618 "stop_memory" => integer 1680688 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8626 "start_memory" => integer 1726976 "stop_time" => float 1734783607.8635 "stop_memory" => integer 1727568 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8635 "start_memory" => integer 1730056 "stop_time" => float 1734783607.8644 "stop_memory" => integer 1730672 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8651 "start_memory" => integer 1750872 "stop_time" => float 1734783607.8659 "stop_memory" => integer 1751464 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8659 "start_memory" => integer 1753944 "stop_time" => float 1734783607.8667 "stop_memory" => integer 1754544 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8673 "start_memory" => integer 1773432 "stop_time" => float 1734783607.8681 "stop_memory" => integer 1774032 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8681 "start_memory" => integer 1776504 "stop_time" => float 1734783607.8689 "stop_memory" => integer 1777120 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8695 "start_memory" => integer 1820224 "stop_time" => float 1734783607.8703 "stop_memory" => integer 1820816 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8704 "start_memory" => integer 1823304 "stop_time" => float 1734783607.8712 "stop_memory" => integer 1823920 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8728 "start_memory" => integer 1852152 "stop_time" => float 1734783607.8736 "stop_memory" => integer 1852728 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8736 "start_memory" => integer 1855184 "stop_time" => float 1734783607.8743 "stop_memory" => integer 1855792 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8748 "start_memory" => integer 1871408 "stop_time" => float 1734783607.876 "stop_memory" => integer 1871928 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.876 "start_memory" => integer 1874288 "stop_time" => float 1734783607.8772 "stop_memory" => integer 1874864 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8777 "start_memory" => integer 1889984 "stop_time" => float 1734783607.8782 "stop_memory" => integer 1890552 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8782 "start_memory" => integer 1892912 "stop_time" => float 1734783607.8788 "stop_memory" => integer 1893496 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8811 "start_memory" => integer 1900424 "stop_time" => float 1734783607.8824 "stop_memory" => integer 1900984 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8825 "start_memory" => integer 1903344 "stop_time" => float 1734783607.8839 "stop_memory" => integer 1903928 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.886 "start_memory" => integer 1910824 "stop_time" => float 1734783607.8873 "stop_memory" => integer 1912392 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8874 "start_memory" => integer 1914752 "stop_time" => float 1734783607.8887 "stop_memory" => integer 1915328 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8893 "start_memory" => integer 1917608 "stop_time" => float 1734783607.8904 "stop_memory" => integer 1918160 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8905 "start_memory" => integer 1920504 "stop_time" => float 1734783607.892 "stop_memory" => integer 1921080 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8925 "start_memory" => integer 1927520 "stop_time" => float 1734783607.8938 "stop_memory" => integer 1928072 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8938 "start_memory" => integer 1930416 "stop_time" => float 1734783607.8952 "stop_memory" => integer 1930992 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.896 "start_memory" => integer 1942072 "stop_time" => float 1734783607.8971 "stop_memory" => integer 1942640 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.8972 "start_memory" => integer 1945024 "stop_time" => float 1734783607.8985 "stop_memory" => integer 1945608 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9005 "start_memory" => integer 1951960 "stop_time" => float 1734783607.9017 "stop_memory" => integer 1952504 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9017 "start_memory" => integer 1954848 "stop_time" => float 1734783607.903 "stop_memory" => integer 1955424 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9038 "start_memory" => integer 1959728 "stop_time" => float 1734783607.9052 "stop_memory" => integer 1960296 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9052 "start_memory" => integer 1962680 "stop_time" => float 1734783607.9067 "stop_memory" => integer 1963264 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9073 "start_memory" => integer 1978056 "stop_time" => float 1734783607.9086 "stop_memory" => integer 1978632 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9087 "start_memory" => integer 1981024 "stop_time" => float 1734783607.9102 "stop_memory" => integer 1981616 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9108 "start_memory" => integer 1996712 "stop_time" => float 1734783607.9122 "stop_memory" => integer 1997280 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9122 "start_memory" => integer 1999696 "stop_time" => float 1734783607.9138 "stop_memory" => integer 2000288 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9144 "start_memory" => integer 2015040 "stop_time" => float 1734783607.9159 "stop_memory" => integer 2015608 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9159 "start_memory" => integer 2018024 "stop_time" => float 1734783607.9175 "stop_memory" => integer 2018616 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.918 "start_memory" => integer 2033368 "stop_time" => float 1734783607.9195 "stop_memory" => integer 2033936 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9195 "start_memory" => integer 2036352 "stop_time" => float 1734783607.9211 "stop_memory" => integer 2036944 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9216 "start_memory" => integer 2051712 "stop_time" => float 1734783607.9231 "stop_memory" => integer 2052280 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9231 "start_memory" => integer 2054696 "stop_time" => float 1734783607.9247 "stop_memory" => integer 2055288 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9253 "start_memory" => integer 2070040 "stop_time" => float 1734783607.9269 "stop_memory" => integer 2070608 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.927 "start_memory" => integer 2073024 "stop_time" => float 1734783607.9287 "stop_memory" => integer 2073616 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9293 "start_memory" => integer 2088368 "stop_time" => float 1734783607.9308 "stop_memory" => integer 2088936 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9309 "start_memory" => integer 2091352 "stop_time" => float 1734783607.9327 "stop_memory" => integer 2091944 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9334 "start_memory" => integer 2106712 "stop_time" => float 1734783607.9347 "stop_memory" => integer 2107280 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9347 "start_memory" => integer 2109696 "stop_time" => float 1734783607.9363 "stop_memory" => integer 2110288 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9368 "start_memory" => integer 2125040 "stop_time" => float 1734783607.9382 "stop_memory" => integer 2125608 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9382 "start_memory" => integer 2128024 "stop_time" => float 1734783607.9398 "stop_memory" => integer 2128616 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9404 "start_memory" => integer 2143464 "stop_time" => float 1734783607.942 "stop_memory" => integer 2144032 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9421 "start_memory" => integer 2146448 "stop_time" => float 1734783607.9438 "stop_memory" => integer 2147040 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9443 "start_memory" => integer 2161792 "stop_time" => float 1734783607.9458 "stop_memory" => integer 2162360 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9459 "start_memory" => integer 2164776 "stop_time" => float 1734783607.9475 "stop_memory" => integer 2165368 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9481 "start_memory" => integer 2180120 "stop_time" => float 1734783607.9497 "stop_memory" => integer 2180688 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9498 "start_memory" => integer 2183104 "stop_time" => float 1734783607.9515 "stop_memory" => integer 2183696 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9521 "start_memory" => integer 2198432 "stop_time" => float 1734783607.9536 "stop_memory" => integer 2199000 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9537 "start_memory" => integer 2201416 "stop_time" => float 1734783607.9552 "stop_memory" => integer 2202008 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9558 "start_memory" => integer 2216760 "stop_time" => float 1734783607.9572 "stop_memory" => integer 2217328 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9573 "start_memory" => integer 2219744 "stop_time" => float 1734783607.9587 "stop_memory" => integer 2220336 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9592 "start_memory" => integer 2235104 "stop_time" => float 1734783607.9606 "stop_memory" => integer 2235672 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9606 "start_memory" => integer 2238088 "stop_time" => float 1734783607.9622 "stop_memory" => integer 2238680 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9628 "start_memory" => integer 2253464 "stop_time" => float 1734783607.9643 "stop_memory" => integer 2254032 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9643 "start_memory" => integer 2256448 "stop_time" => float 1734783607.9658 "stop_memory" => integer 2257040 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9665 "start_memory" => integer 2271808 "stop_time" => float 1734783607.968 "stop_memory" => integer 2272376 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9681 "start_memory" => integer 2274792 "stop_time" => float 1734783607.9698 "stop_memory" => integer 2275384 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9704 "start_memory" => integer 2290280 "stop_time" => float 1734783607.972 "stop_memory" => integer 2290848 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9721 "start_memory" => integer 2293264 "stop_time" => float 1734783607.9739 "stop_memory" => integer 2293856 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9746 "start_memory" => integer 2308640 "stop_time" => float 1734783607.9764 "stop_memory" => integer 2309208 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9765 "start_memory" => integer 2311624 "stop_time" => float 1734783607.9781 "stop_memory" => integer 2312216 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9787 "start_memory" => integer 2326984 "stop_time" => float 1734783607.9802 "stop_memory" => integer 2327552 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9803 "start_memory" => integer 2329968 "stop_time" => float 1734783607.9819 "stop_memory" => integer 2330560 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9824 "start_memory" => integer 2345328 "stop_time" => float 1734783607.9839 "stop_memory" => integer 2345896 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.984 "start_memory" => integer 2348312 "stop_time" => float 1734783607.9857 "stop_memory" => integer 2348904 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9862 "start_memory" => integer 2363656 "stop_time" => float 1734783607.9876 "stop_memory" => integer 2364224 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9877 "start_memory" => integer 2366640 "stop_time" => float 1734783607.9893 "stop_memory" => integer 2367232 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9898 "start_memory" => integer 2381984 "stop_time" => float 1734783607.9913 "stop_memory" => integer 2382552 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9913 "start_memory" => integer 2384968 "stop_time" => float 1734783607.9929 "stop_memory" => integer 2385560 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9935 "start_memory" => integer 2400328 "stop_time" => float 1734783607.9948 "stop_memory" => integer 2400896 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9949 "start_memory" => integer 2403312 "stop_time" => float 1734783607.9965 "stop_memory" => integer 2403904 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9972 "start_memory" => integer 2418656 "stop_time" => float 1734783607.9986 "stop_memory" => integer 2419224 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783607.9987 "start_memory" => integer 2421640 "stop_time" => float 1734783608.0003 "stop_memory" => integer 2422232 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0047 "start_memory" => integer 2437992 "stop_time" => float 1734783608.0056 "stop_memory" => integer 2438544 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0057 "start_memory" => integer 2440904 "stop_time" => float 1734783608.0066 "stop_memory" => integer 2441488 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0072 "start_memory" => integer 2465424 "stop_time" => float 1734783608.008 "stop_memory" => integer 2466000 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0081 "start_memory" => integer 2468376 "stop_time" => float 1734783608.0089 "stop_memory" => integer 2468968 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0095 "start_memory" => integer 2496688 "stop_time" => float 1734783608.0102 "stop_memory" => integer 2497256 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0103 "start_memory" => integer 2499664 "stop_time" => float 1734783608.0111 "stop_memory" => integer 2500256 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0117 "start_memory" => integer 2525472 "stop_time" => float 1734783608.0127 "stop_memory" => integer 2526024 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0128 "start_memory" => integer 2528424 "stop_time" => float 1734783608.0141 "stop_memory" => integer 2529008 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0154 "start_memory" => integer 2537824 "stop_time" => float 1734783608.0166 "stop_memory" => integer 2538416 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0166 "start_memory" => integer 2540808 "stop_time" => float 1734783608.0179 "stop_memory" => integer 2541408 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0183 "start_memory" => integer 2552672 "stop_time" => float 1734783608.0198 "stop_memory" => integer 2553264 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0198 "start_memory" => integer 2555696 "stop_time" => float 1734783608.0217 "stop_memory" => integer 2556288 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0231 "start_memory" => integer 2569552 "stop_time" => float 1734783608.0243 "stop_memory" => integer 2570128 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0244 "start_memory" => integer 2572528 "stop_time" => float 1734783608.0257 "stop_memory" => integer 2573128 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0298 "start_memory" => integer 2585776 "stop_time" => float 1734783608.0311 "stop_memory" => integer 2586320 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0311 "start_memory" => integer 2588704 "stop_time" => float 1734783608.0325 "stop_memory" => integer 2589288 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0329 "start_memory" => integer 2592296 "stop_time" => float 1734783608.0342 "stop_memory" => integer 2592856 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0343 "start_memory" => integer 2595240 "stop_time" => float 1734783608.0358 "stop_memory" => integer 2595824 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0363 "start_memory" => integer 2600880 "stop_time" => float 1734783608.0377 "stop_memory" => integer 2601440 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0378 "start_memory" => integer 2603824 "stop_time" => float 1734783608.0391 "stop_memory" => integer 2604408 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0399 "start_memory" => integer 2609520 "stop_time" => float 1734783608.0412 "stop_memory" => integer 2610080 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0412 "start_memory" => integer 2612440 "stop_time" => float 1734783608.0426 "stop_memory" => integer 2613008 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0431 "start_memory" => integer 2615000 "stop_time" => float 1734783608.0441 "stop_memory" => integer 2615584 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0442 "start_memory" => integer 2619488 "stop_time" => float 1734783608.045 "stop_memory" => integer 2620048 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0451 "start_memory" => integer 2622424 "stop_time" => float 1734783608.046 "stop_memory" => integer 2623008 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0466 "start_memory" => integer 2753120 "stop_time" => float 1734783608.0478 "stop_memory" => integer 2753696 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0482 "start_memory" => integer 2801496 "stop_time" => float 1734783608.0494 "stop_memory" => integer 2802088 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0499 "start_memory" => integer 2847920 "stop_time" => float 1734783608.0505 "stop_memory" => integer 2848504 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0505 "start_memory" => integer 2850904 "stop_time" => float 1734783608.0513 "stop_memory" => integer 2851504 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0518 "start_memory" => integer 2854672 "stop_time" => float 1734783608.0528 "stop_memory" => integer 2855232 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0532 "start_memory" => integer 2899336 "stop_time" => float 1734783608.0542 "stop_memory" => integer 2899912 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0546 "start_memory" => integer 2946272 "stop_time" => float 1734783608.0556 "stop_memory" => integer 2946864 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.056 "start_memory" => integer 2991608 "stop_time" => float 1734783608.0572 "stop_memory" => integer 2992144 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0572 "start_memory" => integer 2994496 "stop_time" => float 1734783608.0585 "stop_memory" => integer 2995072 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0597 "start_memory" => integer 3006888 "stop_time" => float 1734783608.0607 "stop_memory" => integer 3007504 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0607 "start_memory" => integer 3010144 "stop_time" => float 1734783608.0618 "stop_memory" => integer 3010736 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0635 "start_memory" => integer 3031456 "stop_time" => float 1734783608.0649 "stop_memory" => integer 3032016 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.065 "start_memory" => integer 3034432 "stop_time" => float 1734783608.0666 "stop_memory" => integer 3035024 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0666 "start_memory" => integer 3038624 "stop_time" => float 1734783608.068 "stop_memory" => integer 3039208 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.068 "start_memory" => integer 3041640 "stop_time" => float 1734783608.0696 "stop_memory" => integer 3042240 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0712 "start_memory" => integer 3056600 "stop_time" => float 1734783608.0727 "stop_memory" => integer 3057160 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0727 "start_memory" => integer 3059576 "stop_time" => float 1734783608.0743 "stop_memory" => integer 3060168 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0756 "start_memory" => integer 3068840 "stop_time" => float 1734783608.0773 "stop_memory" => integer 3069424 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0773 "start_memory" => integer 3071872 "stop_time" => float 1734783608.0789 "stop_memory" => integer 3072456 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0799 "start_memory" => integer 3080840 "stop_time" => float 1734783608.0811 "stop_memory" => integer 3081408 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0811 "start_memory" => integer 3084040 "stop_time" => float 1734783608.0825 "stop_memory" => integer 3084632 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0855 "start_memory" => integer 3099376 "stop_time" => float 1734783608.0866 "stop_memory" => integer 3099928 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0867 "start_memory" => integer 3102296 "stop_time" => float 1734783608.088 "stop_memory" => integer 3102880 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0884 "start_memory" => integer 3107312 "stop_time" => float 1734783608.0896 "stop_memory" => integer 3107872 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0896 "start_memory" => integer 3110232 "stop_time" => float 1734783608.0908 "stop_memory" => integer 3110816 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0912 "start_memory" => integer 3131248 "stop_time" => float 1734783608.0924 "stop_memory" => integer 3131824 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0925 "start_memory" => integer 3134216 "stop_time" => float 1734783608.0939 "stop_memory" => integer 3134808 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0944 "start_memory" => integer 3154416 "stop_time" => float 1734783608.095 "stop_memory" => integer 3155000 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.095 "start_memory" => integer 3157408 "stop_time" => float 1734783608.0957 "stop_memory" => integer 3158008 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0965 "start_memory" => integer 3181976 "stop_time" => float 1734783608.0978 "stop_memory" => integer 3182536 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0978 "start_memory" => integer 3185168 "stop_time" => float 1734783608.0992 "stop_memory" => integer 3185760 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.0995 "start_memory" => integer 3200504 "stop_time" => float 1734783608.1007 "stop_memory" => integer 3201072 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1008 "start_memory" => integer 3203464 "stop_time" => float 1734783608.1022 "stop_memory" => integer 3204056 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1027 "start_memory" => integer 3223608 "stop_time" => float 1734783608.1038 "stop_memory" => integer 3224144 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1038 "start_memory" => integer 3226488 "stop_time" => float 1734783608.1051 "stop_memory" => integer 3227064 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1056 "start_memory" => integer 3247048 "stop_time" => float 1734783608.1067 "stop_memory" => integer 3247664 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1068 "start_memory" => integer 3250472 "stop_time" => float 1734783608.1081 "stop_memory" => integer 3251080 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1081 "start_memory" => integer 3261496 "stop_time" => float 1734783608.1097 "stop_memory" => integer 3262000 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.111 "start_memory" => integer 3271616 "stop_time" => float 1734783608.112 "stop_memory" => integer 3272184 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1121 "start_memory" => integer 3274592 "stop_time" => float 1734783608.1132 "stop_memory" => integer 3275192 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1136 "start_memory" => integer 3281648 "stop_time" => float 1734783608.1146 "stop_memory" => integer 3282224 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1146 "start_memory" => integer 3284648 "stop_time" => float 1734783608.1158 "stop_memory" => integer 3287296 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1158 "start_memory" => integer 3296496 "stop_time" => float 1734783608.1172 "stop_memory" => integer 3297000 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1182 "start_memory" => integer 3303816 "stop_time" => float 1734783608.1192 "stop_memory" => integer 3304392 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1193 "start_memory" => integer 3306792 "stop_time" => float 1734783608.1204 "stop_memory" => integer 3307392 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1209 "start_memory" => integer 3315920 "stop_time" => float 1734783608.1219 "stop_memory" => integer 3316496 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1219 "start_memory" => integer 3318920 "stop_time" => float 1734783608.1231 "stop_memory" => integer 3319520 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1231 "start_memory" => integer 3324880 "stop_time" => float 1734783608.1247 "stop_memory" => integer 3325384 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1259 "start_memory" => integer 3327680 "stop_time" => float 1734783608.1269 "stop_memory" => integer 3328224 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.127 "start_memory" => integer 3330584 "stop_time" => float 1734783608.1283 "stop_memory" => integer 3331168 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1311 "start_memory" => integer 3338288 "stop_time" => float 1734783608.1324 "stop_memory" => integer 3338864 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1325 "start_memory" => integer 3341448 "stop_time" => float 1734783608.1339 "stop_memory" => integer 3342040 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1341 "start_memory" => integer 3356424 "stop_time" => float 1734783608.1352 "stop_memory" => integer 3356976 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1352 "start_memory" => integer 3359336 "stop_time" => float 1734783608.1365 "stop_memory" => integer 3359904 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1369 "start_memory" => integer 3377344 "stop_time" => float 1734783608.1382 "stop_memory" => integer 3377912 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1382 "start_memory" => integer 3380296 "stop_time" => float 1734783608.1396 "stop_memory" => integer 3380880 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1401 "start_memory" => integer 3397680 "stop_time" => float 1734783608.1414 "stop_memory" => integer 3398256 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1414 "start_memory" => integer 3400680 "stop_time" => float 1734783608.1429 "stop_memory" => integer 3401272 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1438 "start_memory" => integer 3416464 "stop_time" => float 1734783608.145 "stop_memory" => integer 3417032 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.145 "start_memory" => integer 3419616 "stop_time" => float 1734783608.1464 "stop_memory" => integer 3420208 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1467 "start_memory" => integer 3438632 "stop_time" => float 1734783608.1479 "stop_memory" => integer 3439216 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734783608.1481 "start_memory" => integer 3400016 "stop_time" => float 1734783608.1493 "stop_memory" => integer 3402064 ) )
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'],
);
}