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 1734837925.162 "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 1734837925.162 "start_memory" => integer 571168 "stop_time" => float 1734837925.1676 "stop_memory" => integer 571832 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1676 "start_memory" => integer 574256 "stop_time" => float 1734837925.1688 "stop_memory" => integer 574864 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1689 "start_memory" => integer 583080 "stop_time" => float 1734837925.17 "stop_memory" => integer 583632 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.17 "start_memory" => integer 586048 "stop_time" => float 1734837925.1755 "stop_memory" => integer 586640 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1755 "start_memory" => integer 590696 "stop_time" => float 1734837925.1771 "stop_memory" => integer 591248 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1771 "start_memory" => integer 593632 "stop_time" => float 1734837925.1789 "stop_memory" => integer 594216 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.179 "start_memory" => integer 605488 "stop_time" => float 1734837925.1843 "stop_memory" => integer 606048 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1843 "start_memory" => integer 608416 "stop_time" => float 1734837925.1855 "stop_memory" => integer 609064 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1855 "start_memory" => integer 626528 "stop_time" => float 1734837925.1867 "stop_memory" => integer 627104 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1867 "start_memory" => integer 629496 "stop_time" => float 1734837925.1921 "stop_memory" => integer 630072 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1923 "start_memory" => integer 642248 "stop_time" => float 1734837925.1933 "stop_memory" => integer 642792 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1933 "start_memory" => integer 645136 "stop_time" => float 1734837925.1945 "stop_memory" => integer 645712 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1945 "start_memory" => integer 658600 "stop_time" => float 1734837925.1996 "stop_memory" => integer 659200 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.1997 "start_memory" => integer 660280 "stop_time" => float 1734837925.2007 "stop_memory" => integer 660816 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2007 "start_memory" => integer 663168 "stop_time" => float 1734837925.2019 "stop_memory" => integer 663744 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.202 "start_memory" => integer 668416 "stop_time" => float 1734837925.2031 "stop_memory" => integer 669096 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2031 "start_memory" => integer 671440 "stop_time" => float 1734837925.2085 "stop_memory" => integer 672016 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2085 "start_memory" => integer 695120 "stop_time" => float 1734837925.2096 "stop_memory" => integer 695720 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2096 "start_memory" => integer 698120 "stop_time" => float 1734837925.2108 "stop_memory" => integer 698720 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2108 "start_memory" => integer 707872 "stop_time" => float 1734837925.2161 "stop_memory" => integer 708376 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2161 "start_memory" => integer 709016 "stop_time" => float 1734837925.2171 "stop_memory" => integer 709592 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2173 "start_memory" => integer 863400 "stop_time" => float 1734837925.2184 "stop_memory" => integer 863984 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2184 "start_memory" => integer 866384 "stop_time" => float 1734837925.2237 "stop_memory" => integer 866984 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2238 "start_memory" => integer 868000 "stop_time" => float 1734837925.2248 "stop_memory" => integer 868576 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2248 "start_memory" => integer 870976 "stop_time" => float 1734837925.226 "stop_memory" => integer 871576 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.226 "start_memory" => integer 878240 "stop_time" => float 1734837925.2269 "stop_memory" => integer 878800 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.227 "start_memory" => integer 881168 "stop_time" => float 1734837925.2321 "stop_memory" => integer 881760 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2322 "start_memory" => integer 905960 "stop_time" => float 1734837925.2332 "stop_memory" => integer 906496 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2332 "start_memory" => integer 908840 "stop_time" => float 1734837925.2343 "stop_memory" => integer 909416 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837925.2349 "start_memory" => integer 930280 "stop_time" => float 1734837925.2401 "stop_memory" => integer 930880 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0789 "start_memory" => integer 975248 "stop_time" => float 1734837927.0791 "stop_memory" => integer 975824 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0792 "start_memory" => integer 978176 "stop_time" => float 1734837927.0836 "stop_memory" => integer 979016 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0841 "start_memory" => integer 990584 "stop_time" => float 1734837927.0844 "stop_memory" => integer 991160 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0844 "start_memory" => integer 993552 "stop_time" => float 1734837927.0847 "stop_memory" => integer 994144 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.085 "start_memory" => integer 1005992 "stop_time" => float 1734837927.0858 "stop_memory" => integer 1006560 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0858 "start_memory" => integer 1008936 "stop_time" => float 1734837927.0867 "stop_memory" => integer 1009512 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0869 "start_memory" => integer 1021656 "stop_time" => float 1734837927.0916 "stop_memory" => integer 1022248 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0917 "start_memory" => integer 1028112 "stop_time" => float 1734837927.0921 "stop_memory" => integer 1028680 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0921 "start_memory" => integer 1031072 "stop_time" => float 1734837927.0926 "stop_memory" => integer 1031664 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0928 "start_memory" => integer 1040536 "stop_time" => float 1734837927.0933 "stop_memory" => integer 1041136 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0934 "start_memory" => integer 1047456 "stop_time" => float 1734837927.0938 "stop_memory" => integer 1048032 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0939 "start_memory" => integer 1053104 "stop_time" => float 1734837927.0945 "stop_memory" => integer 1053704 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0946 "start_memory" => integer 1059192 "stop_time" => float 1734837927.0951 "stop_memory" => integer 1059768 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0951 "start_memory" => integer 1068304 "stop_time" => float 1734837927.0997 "stop_memory" => integer 1068888 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.0999 "start_memory" => integer 1074272 "stop_time" => float 1734837927.1004 "stop_memory" => integer 1074856 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1005 "start_memory" => integer 1081904 "stop_time" => float 1734837927.1009 "stop_memory" => integer 1082504 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.101 "start_memory" => integer 1089696 "stop_time" => float 1734837927.1014 "stop_memory" => integer 1090288 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1015 "start_memory" => integer 1096776 "stop_time" => float 1734837927.102 "stop_memory" => integer 1097368 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.102 "start_memory" => integer 1103368 "stop_time" => float 1734837927.1025 "stop_memory" => integer 1103960 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1026 "start_memory" => integer 1140256 "stop_time" => float 1734837927.103 "stop_memory" => integer 1140832 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1031 "start_memory" => integer 1148872 "stop_time" => float 1734837927.1076 "stop_memory" => integer 1149472 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1078 "start_memory" => integer 1156896 "stop_time" => float 1734837927.1084 "stop_memory" => integer 1157472 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1085 "start_memory" => integer 1166840 "stop_time" => float 1734837927.109 "stop_memory" => integer 1167424 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.109 "start_memory" => integer 1176104 "stop_time" => float 1734837927.1093 "stop_memory" => integer 1176656 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1094 "start_memory" => integer 1179016 "stop_time" => float 1734837927.1097 "stop_memory" => integer 1179600 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1098 "start_memory" => integer 1192408 "stop_time" => float 1734837927.1108 "stop_memory" => integer 1192968 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1108 "start_memory" => integer 1195328 "stop_time" => float 1734837927.1161 "stop_memory" => integer 1195896 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1174 "start_memory" => integer 1240224 "stop_time" => float 1734837927.1184 "stop_memory" => integer 1240808 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1263 "start_memory" => integer 1240712 "stop_time" => float 1734837927.1267 "stop_memory" => integer 1241288 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1267 "start_memory" => integer 1243696 "stop_time" => float 1734837927.1271 "stop_memory" => integer 1244288 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1272 "start_memory" => integer 1252888 "stop_time" => float 1734837927.1316 "stop_memory" => integer 1253472 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1316 "start_memory" => integer 1255880 "stop_time" => float 1734837927.132 "stop_memory" => integer 1256480 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1346 "start_memory" => integer 1264488 "stop_time" => float 1734837927.1349 "stop_memory" => integer 1265064 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.135 "start_memory" => integer 1267488 "stop_time" => float 1734837927.1395 "stop_memory" => integer 1268600 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1399 "start_memory" => integer 1282992 "stop_time" => float 1734837927.1403 "stop_memory" => integer 1283552 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1403 "start_memory" => integer 1285944 "stop_time" => float 1734837927.1407 "stop_memory" => integer 1286536 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1407 "start_memory" => integer 1296704 "stop_time" => float 1734837927.1411 "stop_memory" => integer 1297288 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1411 "start_memory" => integer 1299704 "stop_time" => float 1734837927.1415 "stop_memory" => integer 1300304 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1485 "start_memory" => integer 1308928 "stop_time" => float 1734837927.1489 "stop_memory" => integer 1309504 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1489 "start_memory" => integer 1311928 "stop_time" => float 1734837927.1493 "stop_memory" => integer 1312512 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1647 "start_memory" => integer 1334680 "stop_time" => float 1734837927.1651 "stop_memory" => integer 1335264 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1651 "start_memory" => integer 1337688 "stop_time" => float 1734837927.1655 "stop_memory" => integer 1338288 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1655 "start_memory" => integer 1348224 "stop_time" => float 1734837927.1658 "stop_memory" => integer 1348784 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1658 "start_memory" => integer 1351176 "stop_time" => float 1734837927.1662 "stop_memory" => integer 1351768 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1666 "start_memory" => integer 1359952 "stop_time" => float 1734837927.1669 "stop_memory" => integer 1360520 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1669 "start_memory" => integer 1362904 "stop_time" => float 1734837927.1673 "stop_memory" => integer 1363496 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.172 "start_memory" => integer 1377256 "stop_time" => float 1734837927.1724 "stop_memory" => integer 1377840 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1724 "start_memory" => integer 1380240 "stop_time" => float 1734837927.1728 "stop_memory" => integer 1380824 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1796 "start_memory" => integer 1393888 "stop_time" => float 1734837927.1806 "stop_memory" => integer 1394424 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1807 "start_memory" => integer 1397808 "stop_time" => float 1734837927.1819 "stop_memory" => integer 1398384 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1829 "start_memory" => integer 1401048 "stop_time" => float 1734837927.1876 "stop_memory" => integer 1401648 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1877 "start_memory" => integer 1404320 "stop_time" => float 1734837927.1883 "stop_memory" => integer 1404920 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1883 "start_memory" => integer 1407624 "stop_time" => float 1734837927.189 "stop_memory" => integer 1408232 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.189 "start_memory" => integer 1412792 "stop_time" => float 1734837927.1896 "stop_memory" => integer 1413376 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1896 "start_memory" => integer 1416088 "stop_time" => float 1734837927.1903 "stop_memory" => integer 1416696 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.1903 "start_memory" => integer 1420488 "stop_time" => float 1734837927.1996 "stop_memory" => integer 1421040 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2004 "start_memory" => integer 1425968 "stop_time" => float 1734837927.2011 "stop_memory" => integer 1426576 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2029 "start_memory" => integer 1431840 "stop_time" => float 1734837927.2033 "stop_memory" => integer 1432432 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2039 "start_memory" => integer 1438224 "stop_time" => float 1734837927.2041 "stop_memory" => integer 1438800 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.205 "start_memory" => integer 1442600 "stop_time" => float 1734837927.2055 "stop_memory" => integer 1443168 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2055 "start_memory" => integer 1445544 "stop_time" => float 1734837927.2061 "stop_memory" => integer 1446136 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.207 "start_memory" => integer 1491512 "stop_time" => float 1734837927.2116 "stop_memory" => integer 1492096 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2116 "start_memory" => integer 1494520 "stop_time" => float 1734837927.2123 "stop_memory" => integer 1495120 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2127 "start_memory" => integer 1509848 "stop_time" => float 1734837927.2132 "stop_memory" => integer 1510440 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2132 "start_memory" => integer 1512872 "stop_time" => float 1734837927.2138 "stop_memory" => integer 1513464 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2146 "start_memory" => integer 1520568 "stop_time" => float 1734837927.2151 "stop_memory" => integer 1521144 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2152 "start_memory" => integer 1523560 "stop_time" => float 1734837927.2198 "stop_memory" => integer 1524160 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2204 "start_memory" => integer 1568536 "stop_time" => float 1734837927.221 "stop_memory" => integer 1569128 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.221 "start_memory" => integer 1571560 "stop_time" => float 1734837927.2217 "stop_memory" => integer 1572168 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2217 "start_memory" => integer 1576648 "stop_time" => float 1734837927.2222 "stop_memory" => integer 1577216 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2223 "start_memory" => integer 1579624 "stop_time" => float 1734837927.2229 "stop_memory" => integer 1580224 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2232 "start_memory" => integer 1607808 "stop_time" => float 1734837927.2278 "stop_memory" => integer 1608384 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2279 "start_memory" => integer 1610792 "stop_time" => float 1734837927.2286 "stop_memory" => integer 1611392 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.229 "start_memory" => integer 1634056 "stop_time" => float 1734837927.2296 "stop_memory" => integer 1634632 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2296 "start_memory" => integer 1637032 "stop_time" => float 1734837927.2359 "stop_memory" => integer 1637632 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2365 "start_memory" => integer 1649960 "stop_time" => float 1734837927.2371 "stop_memory" => integer 1650552 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2372 "start_memory" => integer 1652992 "stop_time" => float 1734837927.2378 "stop_memory" => integer 1653600 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2382 "start_memory" => integer 1669560 "stop_time" => float 1734837927.2389 "stop_memory" => integer 1670160 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.239 "start_memory" => integer 1672648 "stop_time" => float 1734837927.244 "stop_memory" => integer 1673264 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2441 "start_memory" => integer 1677824 "stop_time" => float 1734837927.2448 "stop_memory" => integer 1678416 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2448 "start_memory" => integer 1680872 "stop_time" => float 1734837927.2456 "stop_memory" => integer 1681488 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2462 "start_memory" => integer 1727792 "stop_time" => float 1734837927.2468 "stop_memory" => integer 1728384 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2469 "start_memory" => integer 1730872 "stop_time" => float 1734837927.2517 "stop_memory" => integer 1731488 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2523 "start_memory" => integer 1751688 "stop_time" => float 1734837927.253 "stop_memory" => integer 1752280 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.253 "start_memory" => integer 1754760 "stop_time" => float 1734837927.2538 "stop_memory" => integer 1755360 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2542 "start_memory" => integer 1774248 "stop_time" => float 1734837927.2549 "stop_memory" => integer 1774848 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2549 "start_memory" => integer 1777320 "stop_time" => float 1734837927.2597 "stop_memory" => integer 1777936 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2604 "start_memory" => integer 1821032 "stop_time" => float 1734837927.261 "stop_memory" => integer 1821624 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2611 "start_memory" => integer 1824112 "stop_time" => float 1734837927.2618 "stop_memory" => integer 1824728 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2628 "start_memory" => integer 1852960 "stop_time" => float 1734837927.2675 "stop_memory" => integer 1853536 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2675 "start_memory" => integer 1855992 "stop_time" => float 1734837927.2682 "stop_memory" => integer 1856600 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2688 "start_memory" => integer 1872216 "stop_time" => float 1734837927.2698 "stop_memory" => integer 1872736 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2698 "start_memory" => integer 1875096 "stop_time" => float 1734837927.2709 "stop_memory" => integer 1875672 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2712 "start_memory" => integer 1890792 "stop_time" => float 1734837927.2759 "stop_memory" => integer 1891360 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.276 "start_memory" => integer 1893720 "stop_time" => float 1734837927.2766 "stop_memory" => integer 1894304 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2789 "start_memory" => integer 1901232 "stop_time" => float 1734837927.284 "stop_memory" => integer 1901792 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2841 "start_memory" => integer 1904152 "stop_time" => float 1734837927.2852 "stop_memory" => integer 1904736 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2866 "start_memory" => integer 1911632 "stop_time" => float 1734837927.2917 "stop_memory" => integer 1913200 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2918 "start_memory" => integer 1915560 "stop_time" => float 1734837927.293 "stop_memory" => integer 1916136 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2934 "start_memory" => integer 1918416 "stop_time" => float 1734837927.2945 "stop_memory" => integer 1918968 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.2945 "start_memory" => integer 1921312 "stop_time" => float 1734837927.2998 "stop_memory" => integer 1921888 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3002 "start_memory" => integer 1928328 "stop_time" => float 1734837927.3012 "stop_memory" => integer 1928880 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3012 "start_memory" => integer 1931224 "stop_time" => float 1734837927.3023 "stop_memory" => integer 1931800 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3029 "start_memory" => integer 1942880 "stop_time" => float 1734837927.3079 "stop_memory" => integer 1943448 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.308 "start_memory" => integer 1945832 "stop_time" => float 1734837927.3091 "stop_memory" => integer 1946416 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3103 "start_memory" => integer 1952768 "stop_time" => float 1734837927.3112 "stop_memory" => integer 1953312 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3113 "start_memory" => integer 1955656 "stop_time" => float 1734837927.3165 "stop_memory" => integer 1956232 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3173 "start_memory" => integer 1960536 "stop_time" => float 1734837927.3184 "stop_memory" => integer 1961104 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3184 "start_memory" => integer 1963488 "stop_time" => float 1734837927.3237 "stop_memory" => integer 1964072 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3243 "start_memory" => integer 1978864 "stop_time" => float 1734837927.3254 "stop_memory" => integer 1979440 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3254 "start_memory" => integer 1981832 "stop_time" => float 1734837927.3267 "stop_memory" => integer 1982424 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3271 "start_memory" => integer 1997520 "stop_time" => float 1734837927.3324 "stop_memory" => integer 1998088 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3324 "start_memory" => integer 2000504 "stop_time" => float 1734837927.3338 "stop_memory" => integer 2001096 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3343 "start_memory" => integer 2015848 "stop_time" => float 1734837927.3395 "stop_memory" => integer 2016416 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3396 "start_memory" => integer 2018832 "stop_time" => float 1734837927.3411 "stop_memory" => integer 2019424 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3417 "start_memory" => integer 2034176 "stop_time" => float 1734837927.3429 "stop_memory" => integer 2034744 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.343 "start_memory" => integer 2037160 "stop_time" => float 1734837927.3443 "stop_memory" => integer 2037752 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3452 "start_memory" => integer 2052520 "stop_time" => float 1734837927.3464 "stop_memory" => integer 2053088 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3464 "start_memory" => integer 2055504 "stop_time" => float 1734837927.3559 "stop_memory" => integer 2056096 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3564 "start_memory" => integer 2070848 "stop_time" => float 1734837927.3576 "stop_memory" => integer 2071416 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3577 "start_memory" => integer 2073832 "stop_time" => float 1734837927.359 "stop_memory" => integer 2074424 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3635 "start_memory" => integer 2089176 "stop_time" => float 1734837927.3648 "stop_memory" => integer 2089744 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3648 "start_memory" => integer 2092160 "stop_time" => float 1734837927.3661 "stop_memory" => integer 2092752 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3665 "start_memory" => integer 2107520 "stop_time" => float 1734837927.3718 "stop_memory" => integer 2108088 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3719 "start_memory" => integer 2110504 "stop_time" => float 1734837927.3733 "stop_memory" => integer 2111096 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3737 "start_memory" => integer 2125848 "stop_time" => float 1734837927.3749 "stop_memory" => integer 2126416 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.375 "start_memory" => integer 2128832 "stop_time" => float 1734837927.3805 "stop_memory" => integer 2129424 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.381 "start_memory" => integer 2144272 "stop_time" => float 1734837927.3822 "stop_memory" => integer 2144840 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3822 "start_memory" => integer 2147256 "stop_time" => float 1734837927.3877 "stop_memory" => integer 2147848 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3882 "start_memory" => integer 2162600 "stop_time" => float 1734837927.3895 "stop_memory" => integer 2163168 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3895 "start_memory" => integer 2165584 "stop_time" => float 1734837927.391 "stop_memory" => integer 2166176 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3913 "start_memory" => integer 2180928 "stop_time" => float 1734837927.3966 "stop_memory" => integer 2181496 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3967 "start_memory" => integer 2183912 "stop_time" => float 1734837927.398 "stop_memory" => integer 2184504 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.3985 "start_memory" => integer 2199240 "stop_time" => float 1734837927.4038 "stop_memory" => integer 2199808 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4038 "start_memory" => integer 2202224 "stop_time" => float 1734837927.4052 "stop_memory" => integer 2202816 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4057 "start_memory" => integer 2217576 "stop_time" => float 1734837927.4068 "stop_memory" => integer 2218144 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4069 "start_memory" => integer 2220560 "stop_time" => float 1734837927.4123 "stop_memory" => integer 2221152 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4128 "start_memory" => integer 2235920 "stop_time" => float 1734837927.414 "stop_memory" => integer 2236488 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.414 "start_memory" => integer 2238904 "stop_time" => float 1734837927.4194 "stop_memory" => integer 2239496 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4199 "start_memory" => integer 2254280 "stop_time" => float 1734837927.4213 "stop_memory" => integer 2254848 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4213 "start_memory" => integer 2257264 "stop_time" => float 1734837927.4228 "stop_memory" => integer 2257856 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4231 "start_memory" => integer 2272624 "stop_time" => float 1734837927.4285 "stop_memory" => integer 2273192 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4286 "start_memory" => integer 2275608 "stop_time" => float 1734837927.43 "stop_memory" => integer 2276200 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4305 "start_memory" => integer 2291096 "stop_time" => float 1734837927.4358 "stop_memory" => integer 2291664 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4359 "start_memory" => integer 2294080 "stop_time" => float 1734837927.4376 "stop_memory" => integer 2294672 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4381 "start_memory" => integer 2309456 "stop_time" => float 1734837927.4395 "stop_memory" => integer 2310024 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4396 "start_memory" => integer 2312440 "stop_time" => float 1734837927.4411 "stop_memory" => integer 2313032 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4416 "start_memory" => integer 2327800 "stop_time" => float 1734837927.4429 "stop_memory" => integer 2328368 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4429 "start_memory" => integer 2330784 "stop_time" => float 1734837927.4524 "stop_memory" => integer 2331376 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.453 "start_memory" => integer 2346144 "stop_time" => float 1734837927.4547 "stop_memory" => integer 2346712 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4548 "start_memory" => integer 2349128 "stop_time" => float 1734837927.4605 "stop_memory" => integer 2349720 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.461 "start_memory" => integer 2364472 "stop_time" => float 1734837927.4624 "stop_memory" => integer 2365040 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4625 "start_memory" => integer 2367456 "stop_time" => float 1734837927.4681 "stop_memory" => integer 2368048 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4686 "start_memory" => integer 2382800 "stop_time" => float 1734837927.47 "stop_memory" => integer 2383368 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4701 "start_memory" => integer 2385784 "stop_time" => float 1734837927.4758 "stop_memory" => integer 2386376 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4763 "start_memory" => integer 2401144 "stop_time" => float 1734837927.4777 "stop_memory" => integer 2401712 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4777 "start_memory" => integer 2404128 "stop_time" => float 1734837927.4792 "stop_memory" => integer 2404720 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4839 "start_memory" => integer 2419472 "stop_time" => float 1734837927.4853 "stop_memory" => integer 2420040 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4853 "start_memory" => integer 2422456 "stop_time" => float 1734837927.4868 "stop_memory" => integer 2423048 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4924 "start_memory" => integer 2438808 "stop_time" => float 1734837927.493 "stop_memory" => integer 2439360 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.493 "start_memory" => integer 2441720 "stop_time" => float 1734837927.4937 "stop_memory" => integer 2442304 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4941 "start_memory" => integer 2466240 "stop_time" => float 1734837927.4948 "stop_memory" => integer 2466816 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.4948 "start_memory" => integer 2469192 "stop_time" => float 1734837927.4996 "stop_memory" => integer 2469784 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5002 "start_memory" => integer 2497504 "stop_time" => float 1734837927.501 "stop_memory" => integer 2498072 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.501 "start_memory" => integer 2500480 "stop_time" => float 1734837927.5019 "stop_memory" => integer 2501072 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5048 "start_memory" => integer 2526288 "stop_time" => float 1734837927.5121 "stop_memory" => integer 2526840 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5122 "start_memory" => integer 2529240 "stop_time" => float 1734837927.5134 "stop_memory" => integer 2529824 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5148 "start_memory" => integer 2538640 "stop_time" => float 1734837927.5159 "stop_memory" => integer 2539232 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5159 "start_memory" => integer 2541624 "stop_time" => float 1734837927.5172 "stop_memory" => integer 2542224 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5176 "start_memory" => integer 2553488 "stop_time" => float 1734837927.5188 "stop_memory" => integer 2554080 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5188 "start_memory" => integer 2556512 "stop_time" => float 1734837927.5242 "stop_memory" => integer 2557104 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5255 "start_memory" => integer 2570368 "stop_time" => float 1734837927.5265 "stop_memory" => integer 2570944 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5266 "start_memory" => integer 2573344 "stop_time" => float 1734837927.5317 "stop_memory" => integer 2573944 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5352 "start_memory" => integer 2586592 "stop_time" => float 1734837927.5404 "stop_memory" => integer 2587136 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5404 "start_memory" => integer 2589520 "stop_time" => float 1734837927.5416 "stop_memory" => integer 2590104 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.542 "start_memory" => integer 2593112 "stop_time" => float 1734837927.5431 "stop_memory" => integer 2593672 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5431 "start_memory" => integer 2596056 "stop_time" => float 1734837927.5485 "stop_memory" => integer 2596640 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5489 "start_memory" => integer 2601696 "stop_time" => float 1734837927.55 "stop_memory" => integer 2602256 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.55 "start_memory" => integer 2604640 "stop_time" => float 1734837927.5512 "stop_memory" => integer 2605224 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5559 "start_memory" => integer 2610336 "stop_time" => float 1734837927.5569 "stop_memory" => integer 2610896 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5569 "start_memory" => integer 2613256 "stop_time" => float 1734837927.558 "stop_memory" => integer 2613824 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5583 "start_memory" => integer 2615816 "stop_time" => float 1734837927.5592 "stop_memory" => integer 2616400 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5592 "start_memory" => integer 2620304 "stop_time" => float 1734837927.5639 "stop_memory" => integer 2620864 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.564 "start_memory" => integer 2623240 "stop_time" => float 1734837927.5651 "stop_memory" => integer 2623824 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5658 "start_memory" => integer 2753920 "stop_time" => float 1734837927.5671 "stop_memory" => integer 2754496 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5718 "start_memory" => integer 2802296 "stop_time" => float 1734837927.5728 "stop_memory" => integer 2802888 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5732 "start_memory" => integer 2848720 "stop_time" => float 1734837927.5737 "stop_memory" => integer 2849304 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5738 "start_memory" => integer 2851704 "stop_time" => float 1734837927.5744 "stop_memory" => integer 2852304 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5747 "start_memory" => integer 2855472 "stop_time" => float 1734837927.5796 "stop_memory" => integer 2856032 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.58 "start_memory" => integer 2900136 "stop_time" => float 1734837927.5809 "stop_memory" => integer 2900712 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5813 "start_memory" => integer 2947072 "stop_time" => float 1734837927.5822 "stop_memory" => integer 2947664 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5824 "start_memory" => integer 2992408 "stop_time" => float 1734837927.5875 "stop_memory" => integer 2992944 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5875 "start_memory" => integer 2995296 "stop_time" => float 1734837927.5887 "stop_memory" => integer 2995872 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5897 "start_memory" => integer 3007688 "stop_time" => float 1734837927.5905 "stop_memory" => integer 3008304 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5906 "start_memory" => integer 3010944 "stop_time" => float 1734837927.5956 "stop_memory" => integer 3011536 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5971 "start_memory" => integer 3032256 "stop_time" => float 1734837927.5983 "stop_memory" => integer 3032816 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.5983 "start_memory" => integer 3035232 "stop_time" => float 1734837927.6038 "stop_memory" => integer 3035824 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6038 "start_memory" => integer 3039424 "stop_time" => float 1734837927.605 "stop_memory" => integer 3040008 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.605 "start_memory" => integer 3042440 "stop_time" => float 1734837927.6064 "stop_memory" => integer 3043040 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.612 "start_memory" => integer 3057400 "stop_time" => float 1734837927.6133 "stop_memory" => integer 3057960 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6134 "start_memory" => integer 3060376 "stop_time" => float 1734837927.6148 "stop_memory" => integer 3060968 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6199 "start_memory" => integer 3069640 "stop_time" => float 1734837927.6212 "stop_memory" => integer 3070224 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6212 "start_memory" => integer 3072672 "stop_time" => float 1734837927.6226 "stop_memory" => integer 3073256 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6233 "start_memory" => integer 3081640 "stop_time" => float 1734837927.6285 "stop_memory" => integer 3082208 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6286 "start_memory" => integer 3084840 "stop_time" => float 1734837927.6299 "stop_memory" => integer 3085432 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.636 "start_memory" => integer 3100176 "stop_time" => float 1734837927.637 "stop_memory" => integer 3100728 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6371 "start_memory" => integer 3103096 "stop_time" => float 1734837927.6382 "stop_memory" => integer 3103680 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6385 "start_memory" => integer 3108112 "stop_time" => float 1734837927.6436 "stop_memory" => integer 3108672 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6437 "start_memory" => integer 3111032 "stop_time" => float 1734837927.6448 "stop_memory" => integer 3111616 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6452 "start_memory" => integer 3132048 "stop_time" => float 1734837927.6462 "stop_memory" => integer 3132624 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6463 "start_memory" => integer 3135016 "stop_time" => float 1734837927.6515 "stop_memory" => integer 3135608 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6519 "start_memory" => integer 3155216 "stop_time" => float 1734837927.6525 "stop_memory" => integer 3155800 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6526 "start_memory" => integer 3158208 "stop_time" => float 1734837927.6532 "stop_memory" => integer 3158808 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6537 "start_memory" => integer 3182776 "stop_time" => float 1734837927.6549 "stop_memory" => integer 3183336 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6549 "start_memory" => integer 3185968 "stop_time" => float 1734837927.6602 "stop_memory" => integer 3186560 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6605 "start_memory" => integer 3201304 "stop_time" => float 1734837927.6616 "stop_memory" => integer 3201872 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6617 "start_memory" => integer 3204264 "stop_time" => float 1734837927.663 "stop_memory" => integer 3204856 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6633 "start_memory" => integer 3224408 "stop_time" => float 1734837927.6684 "stop_memory" => integer 3224944 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6685 "start_memory" => integer 3227288 "stop_time" => float 1734837927.6696 "stop_memory" => integer 3227864 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6701 "start_memory" => integer 3247848 "stop_time" => float 1734837927.6711 "stop_memory" => integer 3248464 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6712 "start_memory" => integer 3251272 "stop_time" => float 1734837927.6764 "stop_memory" => integer 3251880 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6765 "start_memory" => integer 3262296 "stop_time" => float 1734837927.6778 "stop_memory" => integer 3262800 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6789 "start_memory" => integer 3272392 "stop_time" => float 1734837927.684 "stop_memory" => integer 3272960 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6841 "start_memory" => integer 3275368 "stop_time" => float 1734837927.6851 "stop_memory" => integer 3275968 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6855 "start_memory" => integer 3282424 "stop_time" => float 1734837927.6864 "stop_memory" => integer 3283000 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6864 "start_memory" => integer 3285424 "stop_time" => float 1734837927.6915 "stop_memory" => integer 3288072 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6915 "start_memory" => integer 3297272 "stop_time" => float 1734837927.6928 "stop_memory" => integer 3297776 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6938 "start_memory" => integer 3304592 "stop_time" => float 1734837927.6947 "stop_memory" => integer 3305168 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.6948 "start_memory" => integer 3307568 "stop_time" => float 1734837927.6999 "stop_memory" => integer 3308168 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7004 "start_memory" => integer 3316696 "stop_time" => float 1734837927.7013 "stop_memory" => integer 3317272 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7013 "start_memory" => integer 3319696 "stop_time" => float 1734837927.7024 "stop_memory" => integer 3320296 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7024 "start_memory" => integer 3325656 "stop_time" => float 1734837927.7077 "stop_memory" => integer 3326160 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7087 "start_memory" => integer 3328456 "stop_time" => float 1734837927.7097 "stop_memory" => integer 3329000 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7098 "start_memory" => integer 3331360 "stop_time" => float 1734837927.711 "stop_memory" => integer 3331944 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7177 "start_memory" => integer 3339064 "stop_time" => float 1734837927.7188 "stop_memory" => integer 3339640 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7188 "start_memory" => integer 3342224 "stop_time" => float 1734837927.7241 "stop_memory" => integer 3342816 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7243 "start_memory" => integer 3357200 "stop_time" => float 1734837927.7253 "stop_memory" => integer 3357752 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7253 "start_memory" => integer 3360112 "stop_time" => float 1734837927.7264 "stop_memory" => integer 3360680 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7267 "start_memory" => integer 3378120 "stop_time" => float 1734837927.7317 "stop_memory" => integer 3378688 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7318 "start_memory" => integer 3381072 "stop_time" => float 1734837927.7329 "stop_memory" => integer 3381656 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7333 "start_memory" => integer 3398456 "stop_time" => float 1734837927.7344 "stop_memory" => integer 3399032 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7344 "start_memory" => integer 3401456 "stop_time" => float 1734837927.7397 "stop_memory" => integer 3402048 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7403 "start_memory" => integer 3417240 "stop_time" => float 1734837927.7414 "stop_memory" => integer 3417808 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7414 "start_memory" => integer 3420392 "stop_time" => float 1734837927.7426 "stop_memory" => integer 3420984 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7427 "start_memory" => integer 3439408 "stop_time" => float 1734837927.7479 "stop_memory" => integer 3439992 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734837927.7481 "start_memory" => integer 3400784 "stop_time" => float 1734837927.749 "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'],
);
}