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/kohana/profiler.php on line 14.
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(27) ""guide/api/Kohana_Profiler"" "start_time" => float 1737584339.6948 "start_memory" => integer 568336 "stop_time" => bool FALSE "stop_memory" => bool FALSE ) "kp/1" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.6949 "start_memory" => integer 570496 "stop_time" => float 1737584339.6965 "stop_memory" => integer 571160 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.6966 "start_memory" => integer 573584 "stop_time" => float 1737584339.6984 "stop_memory" => integer 574192 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.6985 "start_memory" => integer 582408 "stop_time" => float 1737584339.7004 "stop_memory" => integer 582960 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7005 "start_memory" => integer 585376 "stop_time" => float 1737584339.7027 "stop_memory" => integer 585968 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7028 "start_memory" => integer 590024 "stop_time" => float 1737584339.7045 "stop_memory" => integer 590576 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7046 "start_memory" => integer 592960 "stop_time" => float 1737584339.7065 "stop_memory" => integer 593544 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7066 "start_memory" => integer 604816 "stop_time" => float 1737584339.7084 "stop_memory" => integer 605376 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7085 "start_memory" => integer 607744 "stop_time" => float 1737584339.7106 "stop_memory" => integer 608392 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7107 "start_memory" => integer 625856 "stop_time" => float 1737584339.7126 "stop_memory" => integer 626432 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7127 "start_memory" => integer 628824 "stop_time" => float 1737584339.7148 "stop_memory" => integer 629400 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.715 "start_memory" => integer 641576 "stop_time" => float 1737584339.7164 "stop_memory" => integer 642120 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7164 "start_memory" => integer 644464 "stop_time" => float 1737584339.7177 "stop_memory" => integer 645040 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7178 "start_memory" => integer 657928 "stop_time" => float 1737584339.7188 "stop_memory" => integer 658528 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7189 "start_memory" => integer 659608 "stop_time" => float 1737584339.7199 "stop_memory" => integer 660144 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.72 "start_memory" => integer 662496 "stop_time" => float 1737584339.7212 "stop_memory" => integer 663072 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7213 "start_memory" => integer 667744 "stop_time" => float 1737584339.7226 "stop_memory" => integer 668424 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7226 "start_memory" => integer 670768 "stop_time" => float 1737584339.7239 "stop_memory" => integer 671344 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.724 "start_memory" => integer 694448 "stop_time" => float 1737584339.7251 "stop_memory" => integer 695048 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7252 "start_memory" => integer 697448 "stop_time" => float 1737584339.7265 "stop_memory" => integer 698048 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7265 "start_memory" => integer 707200 "stop_time" => float 1737584339.7278 "stop_memory" => integer 707704 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7278 "start_memory" => integer 708344 "stop_time" => float 1737584339.729 "stop_memory" => integer 708920 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7293 "start_memory" => integer 862704 "stop_time" => float 1737584339.7305 "stop_memory" => integer 863288 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7305 "start_memory" => integer 865688 "stop_time" => float 1737584339.7318 "stop_memory" => integer 866288 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7319 "start_memory" => integer 867304 "stop_time" => float 1737584339.733 "stop_memory" => integer 867880 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.733 "start_memory" => integer 870280 "stop_time" => float 1737584339.7343 "stop_memory" => integer 870880 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7344 "start_memory" => integer 877544 "stop_time" => float 1737584339.7354 "stop_memory" => integer 878104 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7354 "start_memory" => integer 880472 "stop_time" => float 1737584339.7366 "stop_memory" => integer 881064 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7367 "start_memory" => integer 904624 "stop_time" => float 1737584339.7377 "stop_memory" => integer 905160 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7378 "start_memory" => integer 907504 "stop_time" => float 1737584339.7391 "stop_memory" => integer 908080 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584339.7398 "start_memory" => integer 929032 "stop_time" => float 1737584339.741 "stop_memory" => integer 929632 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9752 "start_memory" => integer 973448 "stop_time" => float 1737584340.9756 "stop_memory" => integer 974024 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9757 "start_memory" => integer 976376 "stop_time" => float 1737584340.976 "stop_memory" => integer 977216 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9767 "start_memory" => integer 988784 "stop_time" => float 1737584340.9769 "stop_memory" => integer 989360 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.977 "start_memory" => integer 991752 "stop_time" => float 1737584340.9773 "stop_memory" => integer 992344 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9778 "start_memory" => integer 1004192 "stop_time" => float 1737584340.9789 "stop_memory" => integer 1004760 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9789 "start_memory" => integer 1007136 "stop_time" => float 1737584340.9804 "stop_memory" => integer 1007712 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.981 "start_memory" => integer 1019856 "stop_time" => float 1737584340.9816 "stop_memory" => integer 1020448 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9816 "start_memory" => integer 1026312 "stop_time" => float 1737584340.9822 "stop_memory" => integer 1026880 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9822 "start_memory" => integer 1029272 "stop_time" => float 1737584340.9828 "stop_memory" => integer 1029864 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.983 "start_memory" => integer 1038736 "stop_time" => float 1737584340.9836 "stop_memory" => integer 1039336 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9839 "start_memory" => integer 1045656 "stop_time" => float 1737584340.9845 "stop_memory" => integer 1046232 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9846 "start_memory" => integer 1051304 "stop_time" => float 1737584340.9852 "stop_memory" => integer 1051904 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9854 "start_memory" => integer 1057392 "stop_time" => float 1737584340.986 "stop_memory" => integer 1057968 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9861 "start_memory" => integer 1066504 "stop_time" => float 1737584340.9867 "stop_memory" => integer 1067088 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9868 "start_memory" => integer 1072472 "stop_time" => float 1737584340.9875 "stop_memory" => integer 1073056 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9877 "start_memory" => integer 1080104 "stop_time" => float 1737584340.9883 "stop_memory" => integer 1080704 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9884 "start_memory" => integer 1087896 "stop_time" => float 1737584340.9891 "stop_memory" => integer 1088488 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9892 "start_memory" => integer 1094976 "stop_time" => float 1737584340.9899 "stop_memory" => integer 1095568 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9901 "start_memory" => integer 1101568 "stop_time" => float 1737584340.9907 "stop_memory" => integer 1102160 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9909 "start_memory" => integer 1138456 "stop_time" => float 1737584340.9917 "stop_memory" => integer 1139032 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9919 "start_memory" => integer 1147072 "stop_time" => float 1737584340.9924 "stop_memory" => integer 1147672 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9925 "start_memory" => integer 1155096 "stop_time" => float 1737584340.9932 "stop_memory" => integer 1155672 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9934 "start_memory" => integer 1165040 "stop_time" => float 1737584340.9941 "stop_memory" => integer 1165624 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9943 "start_memory" => integer 1174304 "stop_time" => float 1737584340.9947 "stop_memory" => integer 1174856 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9947 "start_memory" => integer 1177216 "stop_time" => float 1737584340.9953 "stop_memory" => integer 1177800 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9953 "start_memory" => integer 1190600 "stop_time" => float 1737584340.9968 "stop_memory" => integer 1191160 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584340.9968 "start_memory" => integer 1193520 "stop_time" => float 1737584340.9985 "stop_memory" => integer 1194088 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0002 "start_memory" => integer 1238416 "stop_time" => float 1737584341.0017 "stop_memory" => integer 1239000 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0083 "start_memory" => integer 1238904 "stop_time" => float 1737584341.0089 "stop_memory" => integer 1239480 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0089 "start_memory" => integer 1241888 "stop_time" => float 1737584341.0095 "stop_memory" => integer 1242480 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0096 "start_memory" => integer 1251080 "stop_time" => float 1737584341.0101 "stop_memory" => integer 1251664 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0102 "start_memory" => integer 1254072 "stop_time" => float 1737584341.0108 "stop_memory" => integer 1254672 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0143 "start_memory" => integer 1262680 "stop_time" => float 1737584341.0148 "stop_memory" => integer 1263256 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0149 "start_memory" => integer 1265680 "stop_time" => float 1737584341.0155 "stop_memory" => integer 1266792 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.016 "start_memory" => integer 1281184 "stop_time" => float 1737584341.0166 "stop_memory" => integer 1281744 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0166 "start_memory" => integer 1284136 "stop_time" => float 1737584341.0171 "stop_memory" => integer 1284728 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0172 "start_memory" => integer 1294896 "stop_time" => float 1737584341.0176 "stop_memory" => integer 1295480 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0177 "start_memory" => integer 1297896 "stop_time" => float 1737584341.0182 "stop_memory" => integer 1298496 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0224 "start_memory" => integer 1307120 "stop_time" => float 1737584341.023 "stop_memory" => integer 1307696 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.023 "start_memory" => integer 1310120 "stop_time" => float 1737584341.0236 "stop_memory" => integer 1310704 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0336 "start_memory" => integer 1332872 "stop_time" => float 1737584341.0342 "stop_memory" => integer 1333456 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0343 "start_memory" => integer 1335880 "stop_time" => float 1737584341.0348 "stop_memory" => integer 1336480 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0348 "start_memory" => integer 1346416 "stop_time" => float 1737584341.0353 "stop_memory" => integer 1346976 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0355 "start_memory" => integer 1349368 "stop_time" => float 1737584341.0362 "stop_memory" => integer 1349960 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.037 "start_memory" => integer 1358144 "stop_time" => float 1737584341.0375 "stop_memory" => integer 1358712 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0376 "start_memory" => integer 1361096 "stop_time" => float 1737584341.0382 "stop_memory" => integer 1361688 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.039 "start_memory" => integer 1375448 "stop_time" => float 1737584341.0396 "stop_memory" => integer 1376032 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0396 "start_memory" => integer 1378432 "stop_time" => float 1737584341.0402 "stop_memory" => integer 1379016 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0444 "start_memory" => integer 1392080 "stop_time" => float 1737584341.0459 "stop_memory" => integer 1392616 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.046 "start_memory" => integer 1396000 "stop_time" => float 1737584341.0475 "stop_memory" => integer 1396576 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0488 "start_memory" => integer 1399240 "stop_time" => float 1737584341.0497 "stop_memory" => integer 1399840 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0497 "start_memory" => integer 1402512 "stop_time" => float 1737584341.0505 "stop_memory" => integer 1403112 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0506 "start_memory" => integer 1405816 "stop_time" => float 1737584341.0514 "stop_memory" => integer 1406424 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0515 "start_memory" => integer 1410984 "stop_time" => float 1737584341.0523 "stop_memory" => integer 1411568 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0524 "start_memory" => integer 1414280 "stop_time" => float 1737584341.0533 "stop_memory" => integer 1414888 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0533 "start_memory" => integer 1418680 "stop_time" => float 1737584341.0552 "stop_memory" => integer 1419232 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0561 "start_memory" => integer 1424160 "stop_time" => float 1737584341.0571 "stop_memory" => integer 1424768 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0594 "start_memory" => integer 1430032 "stop_time" => float 1737584341.0601 "stop_memory" => integer 1430624 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0608 "start_memory" => integer 1436416 "stop_time" => float 1737584341.0609 "stop_memory" => integer 1436992 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0622 "start_memory" => integer 1440792 "stop_time" => float 1737584341.0629 "stop_memory" => integer 1441360 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.063 "start_memory" => integer 1443736 "stop_time" => float 1737584341.0641 "stop_memory" => integer 1444328 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0654 "start_memory" => integer 1489704 "stop_time" => float 1737584341.0662 "stop_memory" => integer 1490288 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0663 "start_memory" => integer 1492712 "stop_time" => float 1737584341.067 "stop_memory" => integer 1493312 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0675 "start_memory" => integer 1508040 "stop_time" => float 1737584341.0682 "stop_memory" => integer 1508632 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0682 "start_memory" => integer 1511064 "stop_time" => float 1737584341.0691 "stop_memory" => integer 1511656 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0705 "start_memory" => integer 1518760 "stop_time" => float 1737584341.0714 "stop_memory" => integer 1519336 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0715 "start_memory" => integer 1521752 "stop_time" => float 1737584341.0724 "stop_memory" => integer 1522352 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.073 "start_memory" => integer 1566720 "stop_time" => float 1737584341.074 "stop_memory" => integer 1567312 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0741 "start_memory" => integer 1569744 "stop_time" => float 1737584341.0752 "stop_memory" => integer 1570352 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0752 "start_memory" => integer 1574832 "stop_time" => float 1737584341.076 "stop_memory" => integer 1575400 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0761 "start_memory" => integer 1577808 "stop_time" => float 1737584341.0768 "stop_memory" => integer 1578408 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0775 "start_memory" => integer 1606000 "stop_time" => float 1737584341.0784 "stop_memory" => integer 1606576 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0784 "start_memory" => integer 1608984 "stop_time" => float 1737584341.0792 "stop_memory" => integer 1609584 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0799 "start_memory" => integer 1632248 "stop_time" => float 1737584341.0807 "stop_memory" => integer 1632824 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0807 "start_memory" => integer 1635224 "stop_time" => float 1737584341.0817 "stop_memory" => integer 1635824 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0825 "start_memory" => integer 1648152 "stop_time" => float 1737584341.0834 "stop_memory" => integer 1648744 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0835 "start_memory" => integer 1651184 "stop_time" => float 1737584341.0844 "stop_memory" => integer 1651792 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0851 "start_memory" => integer 1667752 "stop_time" => float 1737584341.0861 "stop_memory" => integer 1668352 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0862 "start_memory" => integer 1670840 "stop_time" => float 1737584341.0872 "stop_memory" => integer 1671456 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0872 "start_memory" => integer 1676016 "stop_time" => float 1737584341.0882 "stop_memory" => integer 1676608 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0883 "start_memory" => integer 1679064 "stop_time" => float 1737584341.0894 "stop_memory" => integer 1679680 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0903 "start_memory" => integer 1725960 "stop_time" => float 1737584341.0912 "stop_memory" => integer 1726552 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0912 "start_memory" => integer 1729040 "stop_time" => float 1737584341.0922 "stop_memory" => integer 1729656 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.093 "start_memory" => integer 1749856 "stop_time" => float 1737584341.0939 "stop_memory" => integer 1750448 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.094 "start_memory" => integer 1752928 "stop_time" => float 1737584341.0951 "stop_memory" => integer 1753528 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0959 "start_memory" => integer 1772416 "stop_time" => float 1737584341.097 "stop_memory" => integer 1773016 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0971 "start_memory" => integer 1775488 "stop_time" => float 1737584341.0983 "stop_memory" => integer 1776104 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.0993 "start_memory" => integer 1819200 "stop_time" => float 1737584341.1006 "stop_memory" => integer 1819792 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1007 "start_memory" => integer 1822280 "stop_time" => float 1737584341.1021 "stop_memory" => integer 1822896 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1042 "start_memory" => integer 1851128 "stop_time" => float 1737584341.1052 "stop_memory" => integer 1851704 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1053 "start_memory" => integer 1854160 "stop_time" => float 1737584341.1064 "stop_memory" => integer 1854768 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1074 "start_memory" => integer 1870384 "stop_time" => float 1737584341.109 "stop_memory" => integer 1870904 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1091 "start_memory" => integer 1873264 "stop_time" => float 1737584341.1111 "stop_memory" => integer 1873840 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.112 "start_memory" => integer 1888960 "stop_time" => float 1737584341.1128 "stop_memory" => integer 1889528 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1129 "start_memory" => integer 1891888 "stop_time" => float 1737584341.1138 "stop_memory" => integer 1892472 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.118 "start_memory" => integer 1899400 "stop_time" => float 1737584341.1197 "stop_memory" => integer 1899960 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1197 "start_memory" => integer 1902320 "stop_time" => float 1737584341.1215 "stop_memory" => integer 1902904 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1242 "start_memory" => integer 1909800 "stop_time" => float 1737584341.1258 "stop_memory" => integer 1911368 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1259 "start_memory" => integer 1913728 "stop_time" => float 1737584341.1278 "stop_memory" => integer 1914304 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1285 "start_memory" => integer 1916584 "stop_time" => float 1737584341.1302 "stop_memory" => integer 1917136 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1303 "start_memory" => integer 1919480 "stop_time" => float 1737584341.1323 "stop_memory" => integer 1920056 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1329 "start_memory" => integer 1926496 "stop_time" => float 1737584341.1345 "stop_memory" => integer 1927048 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1346 "start_memory" => integer 1929392 "stop_time" => float 1737584341.1366 "stop_memory" => integer 1929968 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1378 "start_memory" => integer 1941048 "stop_time" => float 1737584341.1394 "stop_memory" => integer 1941616 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1395 "start_memory" => integer 1944000 "stop_time" => float 1737584341.1413 "stop_memory" => integer 1944584 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1439 "start_memory" => integer 1950936 "stop_time" => float 1737584341.1456 "stop_memory" => integer 1951480 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1456 "start_memory" => integer 1953824 "stop_time" => float 1737584341.1475 "stop_memory" => integer 1954400 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1488 "start_memory" => integer 1958704 "stop_time" => float 1737584341.1507 "stop_memory" => integer 1959272 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1508 "start_memory" => integer 1961656 "stop_time" => float 1737584341.1528 "stop_memory" => integer 1962240 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.154 "start_memory" => integer 1977032 "stop_time" => float 1737584341.1559 "stop_memory" => integer 1977608 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.156 "start_memory" => integer 1980000 "stop_time" => float 1737584341.1582 "stop_memory" => integer 1980592 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1591 "start_memory" => integer 1995688 "stop_time" => float 1737584341.1612 "stop_memory" => integer 1996256 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1613 "start_memory" => integer 1998672 "stop_time" => float 1737584341.1637 "stop_memory" => integer 1999264 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1646 "start_memory" => integer 2014016 "stop_time" => float 1737584341.1666 "stop_memory" => integer 2014584 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1667 "start_memory" => integer 2017000 "stop_time" => float 1737584341.169 "stop_memory" => integer 2017592 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1699 "start_memory" => integer 2032344 "stop_time" => float 1737584341.1721 "stop_memory" => integer 2032912 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1722 "start_memory" => integer 2035328 "stop_time" => float 1737584341.1741 "stop_memory" => integer 2035920 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1748 "start_memory" => integer 2050688 "stop_time" => float 1737584341.1764 "stop_memory" => integer 2051256 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1765 "start_memory" => integer 2053672 "stop_time" => float 1737584341.1784 "stop_memory" => integer 2054264 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.179 "start_memory" => integer 2069016 "stop_time" => float 1737584341.1812 "stop_memory" => integer 2069584 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1813 "start_memory" => integer 2072000 "stop_time" => float 1737584341.1832 "stop_memory" => integer 2072592 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1838 "start_memory" => integer 2087344 "stop_time" => float 1737584341.1853 "stop_memory" => integer 2087912 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1854 "start_memory" => integer 2090328 "stop_time" => float 1737584341.1875 "stop_memory" => integer 2090920 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1884 "start_memory" => integer 2105688 "stop_time" => float 1737584341.1903 "stop_memory" => integer 2106256 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1904 "start_memory" => integer 2108672 "stop_time" => float 1737584341.1926 "stop_memory" => integer 2109264 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1934 "start_memory" => integer 2124016 "stop_time" => float 1737584341.1951 "stop_memory" => integer 2124584 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.1951 "start_memory" => integer 2127000 "stop_time" => float 1737584341.1973 "stop_memory" => integer 2127592 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.198 "start_memory" => integer 2142440 "stop_time" => float 1737584341.1999 "stop_memory" => integer 2143008 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2 "start_memory" => integer 2145424 "stop_time" => float 1737584341.2021 "stop_memory" => integer 2146016 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2028 "start_memory" => integer 2160768 "stop_time" => float 1737584341.2047 "stop_memory" => integer 2161336 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2048 "start_memory" => integer 2163752 "stop_time" => float 1737584341.2066 "stop_memory" => integer 2164344 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2074 "start_memory" => integer 2179096 "stop_time" => float 1737584341.2091 "stop_memory" => integer 2179664 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2092 "start_memory" => integer 2182080 "stop_time" => float 1737584341.2108 "stop_memory" => integer 2182672 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2115 "start_memory" => integer 2197408 "stop_time" => float 1737584341.213 "stop_memory" => integer 2197976 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2131 "start_memory" => integer 2200392 "stop_time" => float 1737584341.2151 "stop_memory" => integer 2200984 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2159 "start_memory" => integer 2215736 "stop_time" => float 1737584341.2175 "stop_memory" => integer 2216304 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2176 "start_memory" => integer 2218720 "stop_time" => float 1737584341.2197 "stop_memory" => integer 2219312 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2204 "start_memory" => integer 2234080 "stop_time" => float 1737584341.2221 "stop_memory" => integer 2234648 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2222 "start_memory" => integer 2237064 "stop_time" => float 1737584341.2241 "stop_memory" => integer 2237656 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2249 "start_memory" => integer 2252440 "stop_time" => float 1737584341.227 "stop_memory" => integer 2253008 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2271 "start_memory" => integer 2255424 "stop_time" => float 1737584341.2292 "stop_memory" => integer 2256016 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.23 "start_memory" => integer 2270784 "stop_time" => float 1737584341.2316 "stop_memory" => integer 2271352 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2317 "start_memory" => integer 2273768 "stop_time" => float 1737584341.2335 "stop_memory" => integer 2274360 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2343 "start_memory" => integer 2289256 "stop_time" => float 1737584341.2359 "stop_memory" => integer 2289824 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.236 "start_memory" => integer 2292240 "stop_time" => float 1737584341.2381 "stop_memory" => integer 2292832 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2389 "start_memory" => integer 2307616 "stop_time" => float 1737584341.241 "stop_memory" => integer 2308184 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2411 "start_memory" => integer 2310600 "stop_time" => float 1737584341.2431 "stop_memory" => integer 2311192 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2438 "start_memory" => integer 2325960 "stop_time" => float 1737584341.2454 "stop_memory" => integer 2326528 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2455 "start_memory" => integer 2328944 "stop_time" => float 1737584341.2473 "stop_memory" => integer 2329536 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2481 "start_memory" => integer 2344304 "stop_time" => float 1737584341.25 "stop_memory" => integer 2344872 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.25 "start_memory" => integer 2347288 "stop_time" => float 1737584341.2524 "stop_memory" => integer 2347880 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.253 "start_memory" => integer 2362632 "stop_time" => float 1737584341.2546 "stop_memory" => integer 2363200 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2547 "start_memory" => integer 2365616 "stop_time" => float 1737584341.257 "stop_memory" => integer 2366208 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2577 "start_memory" => integer 2380960 "stop_time" => float 1737584341.2595 "stop_memory" => integer 2381528 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2596 "start_memory" => integer 2383944 "stop_time" => float 1737584341.2616 "stop_memory" => integer 2384536 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2623 "start_memory" => integer 2399304 "stop_time" => float 1737584341.2641 "stop_memory" => integer 2399872 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2642 "start_memory" => integer 2402288 "stop_time" => float 1737584341.2662 "stop_memory" => integer 2402880 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2669 "start_memory" => integer 2417632 "stop_time" => float 1737584341.2691 "stop_memory" => integer 2418200 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2692 "start_memory" => integer 2420616 "stop_time" => float 1737584341.2713 "stop_memory" => integer 2421208 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2757 "start_memory" => integer 2436968 "stop_time" => float 1737584341.2767 "stop_memory" => integer 2437520 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2768 "start_memory" => integer 2439880 "stop_time" => float 1737584341.2778 "stop_memory" => integer 2440464 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2787 "start_memory" => integer 2464400 "stop_time" => float 1737584341.2796 "stop_memory" => integer 2464976 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2796 "start_memory" => integer 2467352 "stop_time" => float 1737584341.2807 "stop_memory" => integer 2467944 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2817 "start_memory" => integer 2495672 "stop_time" => float 1737584341.2849 "stop_memory" => integer 2496240 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.285 "start_memory" => integer 2498648 "stop_time" => float 1737584341.2863 "stop_memory" => integer 2499240 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2872 "start_memory" => integer 2524456 "stop_time" => float 1737584341.2898 "stop_memory" => integer 2525008 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2899 "start_memory" => integer 2527408 "stop_time" => float 1737584341.2916 "stop_memory" => integer 2527992 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2936 "start_memory" => integer 2536808 "stop_time" => float 1737584341.2954 "stop_memory" => integer 2537400 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2955 "start_memory" => integer 2539792 "stop_time" => float 1737584341.2977 "stop_memory" => integer 2540392 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.2984 "start_memory" => integer 2551656 "stop_time" => float 1737584341.3003 "stop_memory" => integer 2552248 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3004 "start_memory" => integer 2554680 "stop_time" => float 1737584341.3026 "stop_memory" => integer 2555272 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.305 "start_memory" => integer 2568536 "stop_time" => float 1737584341.3066 "stop_memory" => integer 2569112 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3067 "start_memory" => integer 2571512 "stop_time" => float 1737584341.3082 "stop_memory" => integer 2572112 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3139 "start_memory" => integer 2584760 "stop_time" => float 1737584341.3155 "stop_memory" => integer 2585304 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3155 "start_memory" => integer 2587688 "stop_time" => float 1737584341.3172 "stop_memory" => integer 2588272 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3178 "start_memory" => integer 2591280 "stop_time" => float 1737584341.3201 "stop_memory" => integer 2591840 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3202 "start_memory" => integer 2594224 "stop_time" => float 1737584341.322 "stop_memory" => integer 2594808 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3228 "start_memory" => integer 2599864 "stop_time" => float 1737584341.3245 "stop_memory" => integer 2600424 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3246 "start_memory" => integer 2602808 "stop_time" => float 1737584341.3263 "stop_memory" => integer 2603392 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3273 "start_memory" => integer 2608504 "stop_time" => float 1737584341.3288 "stop_memory" => integer 2609064 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3289 "start_memory" => integer 2611424 "stop_time" => float 1737584341.3304 "stop_memory" => integer 2611992 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3309 "start_memory" => integer 2613984 "stop_time" => float 1737584341.332 "stop_memory" => integer 2614568 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.332 "start_memory" => integer 2618472 "stop_time" => float 1737584341.3329 "stop_memory" => integer 2619032 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.333 "start_memory" => integer 2621408 "stop_time" => float 1737584341.3341 "stop_memory" => integer 2621992 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3347 "start_memory" => integer 2752088 "stop_time" => float 1737584341.3358 "stop_memory" => integer 2752664 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3362 "start_memory" => integer 2800464 "stop_time" => float 1737584341.3377 "stop_memory" => integer 2801056 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3383 "start_memory" => integer 2846888 "stop_time" => float 1737584341.3395 "stop_memory" => integer 2847472 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3395 "start_memory" => integer 2849872 "stop_time" => float 1737584341.3403 "stop_memory" => integer 2850472 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3409 "start_memory" => integer 2853640 "stop_time" => float 1737584341.3421 "stop_memory" => integer 2854200 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3427 "start_memory" => integer 2898304 "stop_time" => float 1737584341.3438 "stop_memory" => integer 2898880 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3443 "start_memory" => integer 2945240 "stop_time" => float 1737584341.3456 "stop_memory" => integer 2945832 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3464 "start_memory" => integer 2990576 "stop_time" => float 1737584341.3477 "stop_memory" => integer 2991112 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3478 "start_memory" => integer 2993464 "stop_time" => float 1737584341.3494 "stop_memory" => integer 2994040 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3513 "start_memory" => integer 3005856 "stop_time" => float 1737584341.3528 "stop_memory" => integer 3006472 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3528 "start_memory" => integer 3009112 "stop_time" => float 1737584341.3542 "stop_memory" => integer 3009704 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3567 "start_memory" => integer 3030424 "stop_time" => float 1737584341.3587 "stop_memory" => integer 3030984 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3588 "start_memory" => integer 3033400 "stop_time" => float 1737584341.3605 "stop_memory" => integer 3033992 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3606 "start_memory" => integer 3037592 "stop_time" => float 1737584341.3623 "stop_memory" => integer 3038176 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3624 "start_memory" => integer 3040608 "stop_time" => float 1737584341.3647 "stop_memory" => integer 3041208 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.367 "start_memory" => integer 3055568 "stop_time" => float 1737584341.3692 "stop_memory" => integer 3056128 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3693 "start_memory" => integer 3058544 "stop_time" => float 1737584341.3711 "stop_memory" => integer 3059136 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3724 "start_memory" => integer 3067808 "stop_time" => float 1737584341.374 "stop_memory" => integer 3068392 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.374 "start_memory" => integer 3070840 "stop_time" => float 1737584341.3758 "stop_memory" => integer 3071424 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3769 "start_memory" => integer 3079808 "stop_time" => float 1737584341.3786 "stop_memory" => integer 3080376 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3787 "start_memory" => integer 3083008 "stop_time" => float 1737584341.3805 "stop_memory" => integer 3083600 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3836 "start_memory" => integer 3098344 "stop_time" => float 1737584341.3851 "stop_memory" => integer 3098896 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3852 "start_memory" => integer 3101264 "stop_time" => float 1737584341.3866 "stop_memory" => integer 3101848 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3873 "start_memory" => integer 3106280 "stop_time" => float 1737584341.3895 "stop_memory" => integer 3106840 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3895 "start_memory" => integer 3109200 "stop_time" => float 1737584341.3911 "stop_memory" => integer 3109784 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3922 "start_memory" => integer 3130216 "stop_time" => float 1737584341.3938 "stop_memory" => integer 3130792 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3939 "start_memory" => integer 3133184 "stop_time" => float 1737584341.3956 "stop_memory" => integer 3133776 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3963 "start_memory" => integer 3153384 "stop_time" => float 1737584341.3971 "stop_memory" => integer 3153968 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3972 "start_memory" => integer 3156376 "stop_time" => float 1737584341.3982 "stop_memory" => integer 3156976 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.3992 "start_memory" => integer 3180944 "stop_time" => float 1737584341.401 "stop_memory" => integer 3181504 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4011 "start_memory" => integer 3184136 "stop_time" => float 1737584341.403 "stop_memory" => integer 3184728 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4034 "start_memory" => integer 3199472 "stop_time" => float 1737584341.4053 "stop_memory" => integer 3200040 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4054 "start_memory" => integer 3202432 "stop_time" => float 1737584341.4071 "stop_memory" => integer 3203024 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4077 "start_memory" => integer 3222576 "stop_time" => float 1737584341.4089 "stop_memory" => integer 3223112 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4089 "start_memory" => integer 3225456 "stop_time" => float 1737584341.4107 "stop_memory" => integer 3226032 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4114 "start_memory" => integer 3246016 "stop_time" => float 1737584341.4128 "stop_memory" => integer 3246632 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4129 "start_memory" => integer 3249440 "stop_time" => float 1737584341.4145 "stop_memory" => integer 3250048 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4146 "start_memory" => integer 3260464 "stop_time" => float 1737584341.4162 "stop_memory" => integer 3260968 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4182 "start_memory" => integer 3270552 "stop_time" => float 1737584341.4197 "stop_memory" => integer 3271120 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4198 "start_memory" => integer 3273528 "stop_time" => float 1737584341.4213 "stop_memory" => integer 3274128 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4218 "start_memory" => integer 3280584 "stop_time" => float 1737584341.4231 "stop_memory" => integer 3281160 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4232 "start_memory" => integer 3283584 "stop_time" => float 1737584341.4246 "stop_memory" => integer 3286232 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4247 "start_memory" => integer 3295432 "stop_time" => float 1737584341.4262 "stop_memory" => integer 3295936 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4278 "start_memory" => integer 3302752 "stop_time" => float 1737584341.4293 "stop_memory" => integer 3303328 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4294 "start_memory" => integer 3305728 "stop_time" => float 1737584341.4311 "stop_memory" => integer 3306328 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4319 "start_memory" => integer 3314856 "stop_time" => float 1737584341.4333 "stop_memory" => integer 3315432 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4334 "start_memory" => integer 3317856 "stop_time" => float 1737584341.4351 "stop_memory" => integer 3318456 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4352 "start_memory" => integer 3323816 "stop_time" => float 1737584341.4372 "stop_memory" => integer 3324320 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4389 "start_memory" => integer 3326616 "stop_time" => float 1737584341.4406 "stop_memory" => integer 3327160 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4407 "start_memory" => integer 3329520 "stop_time" => float 1737584341.4426 "stop_memory" => integer 3330104 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4477 "start_memory" => integer 3337224 "stop_time" => float 1737584341.4496 "stop_memory" => integer 3337800 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4496 "start_memory" => integer 3340384 "stop_time" => float 1737584341.4519 "stop_memory" => integer 3340976 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4523 "start_memory" => integer 3355360 "stop_time" => float 1737584341.4539 "stop_memory" => integer 3355912 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.454 "start_memory" => integer 3358272 "stop_time" => float 1737584341.456 "stop_memory" => integer 3358840 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4567 "start_memory" => integer 3376280 "stop_time" => float 1737584341.4585 "stop_memory" => integer 3376848 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4586 "start_memory" => integer 3379232 "stop_time" => float 1737584341.4605 "stop_memory" => integer 3379816 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4611 "start_memory" => integer 3396616 "stop_time" => float 1737584341.463 "stop_memory" => integer 3397192 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4631 "start_memory" => integer 3399616 "stop_time" => float 1737584341.4648 "stop_memory" => integer 3400208 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4657 "start_memory" => integer 3415400 "stop_time" => float 1737584341.4673 "stop_memory" => integer 3415968 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4674 "start_memory" => integer 3418552 "stop_time" => float 1737584341.4694 "stop_memory" => integer 3419144 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.4698 "start_memory" => integer 3437568 "stop_time" => float 1737584341.4717 "stop_memory" => integer 3438152 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737584341.472 "start_memory" => integer 3399496 "stop_time" => float 1737584341.4733 "stop_memory" => integer 3401544 ) )
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'],
);
}