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 1737573580.2425 "start_memory" => integer 568256 "stop_time" => bool FALSE "stop_memory" => bool FALSE ) "kp/1" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2425 "start_memory" => integer 570424 "stop_time" => float 1737573580.2438 "stop_memory" => integer 571088 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2438 "start_memory" => integer 573512 "stop_time" => float 1737573580.2452 "stop_memory" => integer 574120 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2453 "start_memory" => integer 582336 "stop_time" => float 1737573580.2468 "stop_memory" => integer 582888 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2468 "start_memory" => integer 585304 "stop_time" => float 1737573580.2485 "stop_memory" => integer 585896 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2485 "start_memory" => integer 589952 "stop_time" => float 1737573580.2498 "stop_memory" => integer 590504 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2498 "start_memory" => integer 592888 "stop_time" => float 1737573580.2513 "stop_memory" => integer 593472 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2514 "start_memory" => integer 604744 "stop_time" => float 1737573580.2526 "stop_memory" => integer 605304 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2527 "start_memory" => integer 607672 "stop_time" => float 1737573580.2541 "stop_memory" => integer 608320 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2542 "start_memory" => integer 625784 "stop_time" => float 1737573580.2556 "stop_memory" => integer 626360 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2557 "start_memory" => integer 628752 "stop_time" => float 1737573580.2572 "stop_memory" => integer 629328 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2573 "start_memory" => integer 641504 "stop_time" => float 1737573580.2585 "stop_memory" => integer 642048 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2586 "start_memory" => integer 644392 "stop_time" => float 1737573580.2599 "stop_memory" => integer 644968 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.26 "start_memory" => integer 657856 "stop_time" => float 1737573580.2612 "stop_memory" => integer 658456 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2613 "start_memory" => integer 659536 "stop_time" => float 1737573580.2625 "stop_memory" => integer 660072 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2625 "start_memory" => integer 662424 "stop_time" => float 1737573580.2638 "stop_memory" => integer 663000 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2639 "start_memory" => integer 667672 "stop_time" => float 1737573580.2653 "stop_memory" => integer 668352 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2653 "start_memory" => integer 670696 "stop_time" => float 1737573580.2666 "stop_memory" => integer 671272 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2667 "start_memory" => integer 694376 "stop_time" => float 1737573580.268 "stop_memory" => integer 694976 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2681 "start_memory" => integer 697376 "stop_time" => float 1737573580.2696 "stop_memory" => integer 697976 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2696 "start_memory" => integer 707128 "stop_time" => float 1737573580.2711 "stop_memory" => integer 707632 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2711 "start_memory" => integer 708272 "stop_time" => float 1737573580.2725 "stop_memory" => integer 708848 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2729 "start_memory" => integer 862640 "stop_time" => float 1737573580.274 "stop_memory" => integer 863224 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2742 "start_memory" => integer 865624 "stop_time" => float 1737573580.2759 "stop_memory" => integer 866224 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.276 "start_memory" => integer 867240 "stop_time" => float 1737573580.2774 "stop_memory" => integer 867816 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2774 "start_memory" => integer 870216 "stop_time" => float 1737573580.279 "stop_memory" => integer 870816 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2791 "start_memory" => integer 877480 "stop_time" => float 1737573580.2803 "stop_memory" => integer 878040 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2804 "start_memory" => integer 880408 "stop_time" => float 1737573580.2816 "stop_memory" => integer 881000 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2818 "start_memory" => integer 905200 "stop_time" => float 1737573580.283 "stop_memory" => integer 905736 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.283 "start_memory" => integer 908080 "stop_time" => float 1737573580.2845 "stop_memory" => integer 908656 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573580.2854 "start_memory" => integer 929520 "stop_time" => float 1737573580.2871 "stop_memory" => integer 930120 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5253 "start_memory" => integer 974480 "stop_time" => float 1737573581.5255 "stop_memory" => integer 975056 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5256 "start_memory" => integer 977408 "stop_time" => float 1737573581.5258 "stop_memory" => integer 978248 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5263 "start_memory" => integer 989816 "stop_time" => float 1737573581.5266 "stop_memory" => integer 990392 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5267 "start_memory" => integer 992784 "stop_time" => float 1737573581.527 "stop_memory" => integer 993376 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5276 "start_memory" => integer 1005224 "stop_time" => float 1737573581.5286 "stop_memory" => integer 1005792 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5286 "start_memory" => integer 1008168 "stop_time" => float 1737573581.5298 "stop_memory" => integer 1008744 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5303 "start_memory" => integer 1020888 "stop_time" => float 1737573581.5308 "stop_memory" => integer 1021480 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5308 "start_memory" => integer 1027344 "stop_time" => float 1737573581.5315 "stop_memory" => integer 1027912 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5316 "start_memory" => integer 1030304 "stop_time" => float 1737573581.532 "stop_memory" => integer 1030896 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5322 "start_memory" => integer 1039768 "stop_time" => float 1737573581.5327 "stop_memory" => integer 1040368 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5328 "start_memory" => integer 1046688 "stop_time" => float 1737573581.5336 "stop_memory" => integer 1047264 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5339 "start_memory" => integer 1052336 "stop_time" => float 1737573581.5344 "stop_memory" => integer 1052936 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5346 "start_memory" => integer 1058424 "stop_time" => float 1737573581.535 "stop_memory" => integer 1059000 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5351 "start_memory" => integer 1067536 "stop_time" => float 1737573581.5356 "stop_memory" => integer 1068120 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5357 "start_memory" => integer 1073504 "stop_time" => float 1737573581.5362 "stop_memory" => integer 1074088 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5364 "start_memory" => integer 1081136 "stop_time" => float 1737573581.5369 "stop_memory" => integer 1081736 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.537 "start_memory" => integer 1088928 "stop_time" => float 1737573581.5375 "stop_memory" => integer 1089520 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5376 "start_memory" => integer 1096008 "stop_time" => float 1737573581.5381 "stop_memory" => integer 1096600 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5382 "start_memory" => integer 1102600 "stop_time" => float 1737573581.5387 "stop_memory" => integer 1103192 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5389 "start_memory" => integer 1139488 "stop_time" => float 1737573581.5396 "stop_memory" => integer 1140064 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5398 "start_memory" => integer 1148104 "stop_time" => float 1737573581.5403 "stop_memory" => integer 1148704 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5405 "start_memory" => integer 1156128 "stop_time" => float 1737573581.541 "stop_memory" => integer 1156704 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5411 "start_memory" => integer 1166072 "stop_time" => float 1737573581.5416 "stop_memory" => integer 1166656 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5417 "start_memory" => integer 1175336 "stop_time" => float 1737573581.5422 "stop_memory" => integer 1175888 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5422 "start_memory" => integer 1178248 "stop_time" => float 1737573581.5428 "stop_memory" => integer 1178832 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5429 "start_memory" => integer 1191632 "stop_time" => float 1737573581.544 "stop_memory" => integer 1192192 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.544 "start_memory" => integer 1194552 "stop_time" => float 1737573581.5455 "stop_memory" => integer 1195120 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5478 "start_memory" => integer 1239448 "stop_time" => float 1737573581.5491 "stop_memory" => integer 1240032 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5541 "start_memory" => integer 1239936 "stop_time" => float 1737573581.5546 "stop_memory" => integer 1240512 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5547 "start_memory" => integer 1242920 "stop_time" => float 1737573581.5552 "stop_memory" => integer 1243512 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5553 "start_memory" => integer 1252112 "stop_time" => float 1737573581.5557 "stop_memory" => integer 1252696 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5558 "start_memory" => integer 1255104 "stop_time" => float 1737573581.5563 "stop_memory" => integer 1255704 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5597 "start_memory" => integer 1263712 "stop_time" => float 1737573581.5601 "stop_memory" => integer 1264288 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5602 "start_memory" => integer 1266712 "stop_time" => float 1737573581.5606 "stop_memory" => integer 1267824 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.561 "start_memory" => integer 1282216 "stop_time" => float 1737573581.5613 "stop_memory" => integer 1282776 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5614 "start_memory" => integer 1285168 "stop_time" => float 1737573581.5618 "stop_memory" => integer 1285760 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5619 "start_memory" => integer 1295928 "stop_time" => float 1737573581.5624 "stop_memory" => integer 1296512 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5624 "start_memory" => integer 1298928 "stop_time" => float 1737573581.5629 "stop_memory" => integer 1299528 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5665 "start_memory" => integer 1308152 "stop_time" => float 1737573581.567 "stop_memory" => integer 1308728 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.567 "start_memory" => integer 1311152 "stop_time" => float 1737573581.5676 "stop_memory" => integer 1311736 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.576 "start_memory" => integer 1333904 "stop_time" => float 1737573581.5764 "stop_memory" => integer 1334488 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5765 "start_memory" => integer 1336912 "stop_time" => float 1737573581.577 "stop_memory" => integer 1337512 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5771 "start_memory" => integer 1347448 "stop_time" => float 1737573581.5774 "stop_memory" => integer 1348008 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5774 "start_memory" => integer 1350400 "stop_time" => float 1737573581.5778 "stop_memory" => integer 1350992 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5784 "start_memory" => integer 1359152 "stop_time" => float 1737573581.5788 "stop_memory" => integer 1359720 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5788 "start_memory" => integer 1362104 "stop_time" => float 1737573581.5793 "stop_memory" => integer 1362696 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.58 "start_memory" => integer 1376456 "stop_time" => float 1737573581.5803 "stop_memory" => integer 1377040 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5804 "start_memory" => integer 1379440 "stop_time" => float 1737573581.5807 "stop_memory" => integer 1380024 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5842 "start_memory" => integer 1393080 "stop_time" => float 1737573581.5856 "stop_memory" => integer 1393616 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5857 "start_memory" => integer 1397000 "stop_time" => float 1737573581.5871 "stop_memory" => integer 1397576 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5884 "start_memory" => integer 1400248 "stop_time" => float 1737573581.5891 "stop_memory" => integer 1400848 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5892 "start_memory" => integer 1403520 "stop_time" => float 1737573581.5898 "stop_memory" => integer 1404120 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5899 "start_memory" => integer 1406824 "stop_time" => float 1737573581.5907 "stop_memory" => integer 1407432 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5907 "start_memory" => integer 1411992 "stop_time" => float 1737573581.5916 "stop_memory" => integer 1412576 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5917 "start_memory" => integer 1415288 "stop_time" => float 1737573581.5926 "stop_memory" => integer 1415896 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5927 "start_memory" => integer 1419688 "stop_time" => float 1737573581.5942 "stop_memory" => integer 1420240 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.595 "start_memory" => integer 1425168 "stop_time" => float 1737573581.5958 "stop_memory" => integer 1425776 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.5985 "start_memory" => integer 1431040 "stop_time" => float 1737573581.5991 "stop_memory" => integer 1431632 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6001 "start_memory" => integer 1437424 "stop_time" => float 1737573581.6003 "stop_memory" => integer 1438000 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6016 "start_memory" => integer 1441800 "stop_time" => float 1737573581.6022 "stop_memory" => integer 1442368 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6023 "start_memory" => integer 1444744 "stop_time" => float 1737573581.603 "stop_memory" => integer 1445336 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6046 "start_memory" => integer 1490712 "stop_time" => float 1737573581.6053 "stop_memory" => integer 1491296 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6054 "start_memory" => integer 1493720 "stop_time" => float 1737573581.6063 "stop_memory" => integer 1494320 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6068 "start_memory" => integer 1509048 "stop_time" => float 1737573581.6077 "stop_memory" => integer 1509640 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6078 "start_memory" => integer 1512072 "stop_time" => float 1737573581.6085 "stop_memory" => integer 1512664 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6095 "start_memory" => integer 1519784 "stop_time" => float 1737573581.6102 "stop_memory" => integer 1520360 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6102 "start_memory" => integer 1522776 "stop_time" => float 1737573581.6109 "stop_memory" => integer 1523376 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6114 "start_memory" => integer 1567728 "stop_time" => float 1737573581.6122 "stop_memory" => integer 1568320 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6123 "start_memory" => integer 1570752 "stop_time" => float 1737573581.6132 "stop_memory" => integer 1571360 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6133 "start_memory" => integer 1575840 "stop_time" => float 1737573581.6139 "stop_memory" => integer 1576408 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.614 "start_memory" => integer 1578816 "stop_time" => float 1737573581.6148 "stop_memory" => integer 1579416 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6155 "start_memory" => integer 1607008 "stop_time" => float 1737573581.6163 "stop_memory" => integer 1607584 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6163 "start_memory" => integer 1609992 "stop_time" => float 1737573581.617 "stop_memory" => integer 1610592 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6175 "start_memory" => integer 1633256 "stop_time" => float 1737573581.6182 "stop_memory" => integer 1633832 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6183 "start_memory" => integer 1636232 "stop_time" => float 1737573581.6189 "stop_memory" => integer 1636832 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6195 "start_memory" => integer 1649160 "stop_time" => float 1737573581.6202 "stop_memory" => integer 1649752 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6203 "start_memory" => integer 1652192 "stop_time" => float 1737573581.621 "stop_memory" => integer 1652800 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6216 "start_memory" => integer 1668760 "stop_time" => float 1737573581.6224 "stop_memory" => integer 1669360 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6225 "start_memory" => integer 1671848 "stop_time" => float 1737573581.6235 "stop_memory" => integer 1672464 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6236 "start_memory" => integer 1677024 "stop_time" => float 1737573581.6244 "stop_memory" => integer 1677616 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6245 "start_memory" => integer 1680072 "stop_time" => float 1737573581.6253 "stop_memory" => integer 1680688 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6259 "start_memory" => integer 1726976 "stop_time" => float 1737573581.6268 "stop_memory" => integer 1727568 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6268 "start_memory" => integer 1730056 "stop_time" => float 1737573581.6277 "stop_memory" => integer 1730672 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6283 "start_memory" => integer 1750872 "stop_time" => float 1737573581.6291 "stop_memory" => integer 1751464 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6291 "start_memory" => integer 1753944 "stop_time" => float 1737573581.6299 "stop_memory" => integer 1754544 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6306 "start_memory" => integer 1773432 "stop_time" => float 1737573581.6315 "stop_memory" => integer 1774032 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6316 "start_memory" => integer 1776504 "stop_time" => float 1737573581.6326 "stop_memory" => integer 1777120 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6334 "start_memory" => integer 1820224 "stop_time" => float 1737573581.6342 "stop_memory" => integer 1820816 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6343 "start_memory" => integer 1823304 "stop_time" => float 1737573581.6351 "stop_memory" => integer 1823920 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6364 "start_memory" => integer 1852152 "stop_time" => float 1737573581.6372 "stop_memory" => integer 1852728 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6373 "start_memory" => integer 1855184 "stop_time" => float 1737573581.6384 "stop_memory" => integer 1855792 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6393 "start_memory" => integer 1871408 "stop_time" => float 1737573581.641 "stop_memory" => integer 1871928 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.641 "start_memory" => integer 1874288 "stop_time" => float 1737573581.6428 "stop_memory" => integer 1874864 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6435 "start_memory" => integer 1889984 "stop_time" => float 1737573581.6443 "stop_memory" => integer 1890552 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6444 "start_memory" => integer 1892912 "stop_time" => float 1737573581.6453 "stop_memory" => integer 1893496 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6483 "start_memory" => integer 1900424 "stop_time" => float 1737573581.6496 "stop_memory" => integer 1900984 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6497 "start_memory" => integer 1903344 "stop_time" => float 1737573581.6511 "stop_memory" => integer 1903928 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6532 "start_memory" => integer 1910824 "stop_time" => float 1737573581.6546 "stop_memory" => integer 1912392 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6546 "start_memory" => integer 1914752 "stop_time" => float 1737573581.6562 "stop_memory" => integer 1915328 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6567 "start_memory" => integer 1917608 "stop_time" => float 1737573581.6579 "stop_memory" => integer 1918160 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.658 "start_memory" => integer 1920504 "stop_time" => float 1737573581.6594 "stop_memory" => integer 1921080 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6599 "start_memory" => integer 1927520 "stop_time" => float 1737573581.6609 "stop_memory" => integer 1928072 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6609 "start_memory" => integer 1930416 "stop_time" => float 1737573581.6622 "stop_memory" => integer 1930992 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6632 "start_memory" => integer 1942072 "stop_time" => float 1737573581.6644 "stop_memory" => integer 1942640 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6644 "start_memory" => integer 1945024 "stop_time" => float 1737573581.6659 "stop_memory" => integer 1945608 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6677 "start_memory" => integer 1951960 "stop_time" => float 1737573581.6691 "stop_memory" => integer 1952504 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6692 "start_memory" => integer 1954848 "stop_time" => float 1737573581.6707 "stop_memory" => integer 1955424 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6719 "start_memory" => integer 1959728 "stop_time" => float 1737573581.6736 "stop_memory" => integer 1960296 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6736 "start_memory" => integer 1962680 "stop_time" => float 1737573581.6752 "stop_memory" => integer 1963264 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.676 "start_memory" => integer 1978056 "stop_time" => float 1737573581.6772 "stop_memory" => integer 1978632 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6773 "start_memory" => integer 1981024 "stop_time" => float 1737573581.6786 "stop_memory" => integer 1981616 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6792 "start_memory" => integer 1996712 "stop_time" => float 1737573581.6806 "stop_memory" => integer 1997280 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6806 "start_memory" => integer 1999696 "stop_time" => float 1737573581.6831 "stop_memory" => integer 2000288 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.684 "start_memory" => integer 2015040 "stop_time" => float 1737573581.6859 "stop_memory" => integer 2015608 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.686 "start_memory" => integer 2018024 "stop_time" => float 1737573581.6882 "stop_memory" => integer 2018616 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6891 "start_memory" => integer 2033368 "stop_time" => float 1737573581.6911 "stop_memory" => integer 2033936 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6912 "start_memory" => integer 2036352 "stop_time" => float 1737573581.6934 "stop_memory" => integer 2036944 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6942 "start_memory" => integer 2051712 "stop_time" => float 1737573581.6962 "stop_memory" => integer 2052280 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6963 "start_memory" => integer 2054696 "stop_time" => float 1737573581.6986 "stop_memory" => integer 2055288 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.6995 "start_memory" => integer 2070040 "stop_time" => float 1737573581.7016 "stop_memory" => integer 2070608 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7017 "start_memory" => integer 2073024 "stop_time" => float 1737573581.704 "stop_memory" => integer 2073616 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7047 "start_memory" => integer 2088368 "stop_time" => float 1737573581.7066 "stop_memory" => integer 2088936 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7067 "start_memory" => integer 2091352 "stop_time" => float 1737573581.7089 "stop_memory" => integer 2091944 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7097 "start_memory" => integer 2106712 "stop_time" => float 1737573581.7118 "stop_memory" => integer 2107280 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7119 "start_memory" => integer 2109696 "stop_time" => float 1737573581.7141 "stop_memory" => integer 2110288 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7149 "start_memory" => integer 2125040 "stop_time" => float 1737573581.7169 "stop_memory" => integer 2125608 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7169 "start_memory" => integer 2128024 "stop_time" => float 1737573581.7191 "stop_memory" => integer 2128616 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.72 "start_memory" => integer 2143464 "stop_time" => float 1737573581.7219 "stop_memory" => integer 2144032 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.722 "start_memory" => integer 2146448 "stop_time" => float 1737573581.7242 "stop_memory" => integer 2147040 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7251 "start_memory" => integer 2161792 "stop_time" => float 1737573581.727 "stop_memory" => integer 2162360 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7271 "start_memory" => integer 2164776 "stop_time" => float 1737573581.7292 "stop_memory" => integer 2165368 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.73 "start_memory" => integer 2180120 "stop_time" => float 1737573581.732 "stop_memory" => integer 2180688 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7321 "start_memory" => integer 2183104 "stop_time" => float 1737573581.7341 "stop_memory" => integer 2183696 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7349 "start_memory" => integer 2198432 "stop_time" => float 1737573581.7368 "stop_memory" => integer 2199000 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7369 "start_memory" => integer 2201416 "stop_time" => float 1737573581.739 "stop_memory" => integer 2202008 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7399 "start_memory" => integer 2216760 "stop_time" => float 1737573581.742 "stop_memory" => integer 2217328 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7421 "start_memory" => integer 2219744 "stop_time" => float 1737573581.7444 "stop_memory" => integer 2220336 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7452 "start_memory" => integer 2235104 "stop_time" => float 1737573581.7471 "stop_memory" => integer 2235672 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7472 "start_memory" => integer 2238088 "stop_time" => float 1737573581.7493 "stop_memory" => integer 2238680 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7501 "start_memory" => integer 2253464 "stop_time" => float 1737573581.752 "stop_memory" => integer 2254032 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7521 "start_memory" => integer 2256448 "stop_time" => float 1737573581.7542 "stop_memory" => integer 2257040 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7551 "start_memory" => integer 2271808 "stop_time" => float 1737573581.757 "stop_memory" => integer 2272376 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7571 "start_memory" => integer 2274792 "stop_time" => float 1737573581.7592 "stop_memory" => integer 2275384 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7601 "start_memory" => integer 2290280 "stop_time" => float 1737573581.762 "stop_memory" => integer 2290848 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7621 "start_memory" => integer 2293264 "stop_time" => float 1737573581.7643 "stop_memory" => integer 2293856 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7651 "start_memory" => integer 2308640 "stop_time" => float 1737573581.767 "stop_memory" => integer 2309208 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7671 "start_memory" => integer 2311624 "stop_time" => float 1737573581.7693 "stop_memory" => integer 2312216 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7701 "start_memory" => integer 2326984 "stop_time" => float 1737573581.772 "stop_memory" => integer 2327552 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7721 "start_memory" => integer 2329968 "stop_time" => float 1737573581.7742 "stop_memory" => integer 2330560 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.775 "start_memory" => integer 2345328 "stop_time" => float 1737573581.7769 "stop_memory" => integer 2345896 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.777 "start_memory" => integer 2348312 "stop_time" => float 1737573581.7792 "stop_memory" => integer 2348904 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7801 "start_memory" => integer 2363656 "stop_time" => float 1737573581.782 "stop_memory" => integer 2364224 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7821 "start_memory" => integer 2366640 "stop_time" => float 1737573581.7844 "stop_memory" => integer 2367232 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7852 "start_memory" => integer 2381984 "stop_time" => float 1737573581.7871 "stop_memory" => integer 2382552 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7872 "start_memory" => integer 2384968 "stop_time" => float 1737573581.7892 "stop_memory" => integer 2385560 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7899 "start_memory" => integer 2400328 "stop_time" => float 1737573581.7914 "stop_memory" => integer 2400896 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7914 "start_memory" => integer 2403312 "stop_time" => float 1737573581.793 "stop_memory" => integer 2403904 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7936 "start_memory" => integer 2418656 "stop_time" => float 1737573581.7951 "stop_memory" => integer 2419224 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.7952 "start_memory" => integer 2421640 "stop_time" => float 1737573581.7967 "stop_memory" => integer 2422232 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8 "start_memory" => integer 2437992 "stop_time" => float 1737573581.8007 "stop_memory" => integer 2438544 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8008 "start_memory" => integer 2440904 "stop_time" => float 1737573581.8015 "stop_memory" => integer 2441488 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.802 "start_memory" => integer 2465424 "stop_time" => float 1737573581.8029 "stop_memory" => integer 2466000 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.803 "start_memory" => integer 2468376 "stop_time" => float 1737573581.8039 "stop_memory" => integer 2468968 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8045 "start_memory" => integer 2496688 "stop_time" => float 1737573581.8053 "stop_memory" => integer 2497256 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8053 "start_memory" => integer 2499664 "stop_time" => float 1737573581.8062 "stop_memory" => integer 2500256 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8068 "start_memory" => integer 2525472 "stop_time" => float 1737573581.808 "stop_memory" => integer 2526024 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.808 "start_memory" => integer 2528424 "stop_time" => float 1737573581.8092 "stop_memory" => integer 2529008 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8106 "start_memory" => integer 2537824 "stop_time" => float 1737573581.8118 "stop_memory" => integer 2538416 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8119 "start_memory" => integer 2540808 "stop_time" => float 1737573581.8133 "stop_memory" => integer 2541408 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8137 "start_memory" => integer 2552672 "stop_time" => float 1737573581.815 "stop_memory" => integer 2553264 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.815 "start_memory" => integer 2555696 "stop_time" => float 1737573581.8164 "stop_memory" => integer 2556288 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8178 "start_memory" => integer 2569552 "stop_time" => float 1737573581.8192 "stop_memory" => integer 2570128 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8192 "start_memory" => integer 2572528 "stop_time" => float 1737573581.8205 "stop_memory" => integer 2573128 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8248 "start_memory" => integer 2585776 "stop_time" => float 1737573581.826 "stop_memory" => integer 2586320 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.826 "start_memory" => integer 2588704 "stop_time" => float 1737573581.8274 "stop_memory" => integer 2589288 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8279 "start_memory" => integer 2592296 "stop_time" => float 1737573581.8291 "stop_memory" => integer 2592856 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8291 "start_memory" => integer 2595240 "stop_time" => float 1737573581.8307 "stop_memory" => integer 2595824 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8313 "start_memory" => integer 2600880 "stop_time" => float 1737573581.8327 "stop_memory" => integer 2601440 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8328 "start_memory" => integer 2603824 "stop_time" => float 1737573581.8344 "stop_memory" => integer 2604408 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8352 "start_memory" => integer 2609520 "stop_time" => float 1737573581.8366 "stop_memory" => integer 2610080 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8367 "start_memory" => integer 2612440 "stop_time" => float 1737573581.838 "stop_memory" => integer 2613008 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8385 "start_memory" => integer 2615000 "stop_time" => float 1737573581.8395 "stop_memory" => integer 2615584 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8395 "start_memory" => integer 2619488 "stop_time" => float 1737573581.8402 "stop_memory" => integer 2620048 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8403 "start_memory" => integer 2622424 "stop_time" => float 1737573581.841 "stop_memory" => integer 2623008 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8415 "start_memory" => integer 2753120 "stop_time" => float 1737573581.8424 "stop_memory" => integer 2753696 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8428 "start_memory" => integer 2801496 "stop_time" => float 1737573581.8438 "stop_memory" => integer 2802088 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8441 "start_memory" => integer 2847920 "stop_time" => float 1737573581.8447 "stop_memory" => integer 2848504 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8448 "start_memory" => integer 2850904 "stop_time" => float 1737573581.8454 "stop_memory" => integer 2851504 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8458 "start_memory" => integer 2854672 "stop_time" => float 1737573581.8468 "stop_memory" => integer 2855232 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8473 "start_memory" => integer 2899336 "stop_time" => float 1737573581.8483 "stop_memory" => integer 2899912 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8488 "start_memory" => integer 2946272 "stop_time" => float 1737573581.8501 "stop_memory" => integer 2946864 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8506 "start_memory" => integer 2991608 "stop_time" => float 1737573581.8517 "stop_memory" => integer 2992144 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8518 "start_memory" => integer 2994496 "stop_time" => float 1737573581.8531 "stop_memory" => integer 2995072 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8544 "start_memory" => integer 3006888 "stop_time" => float 1737573581.8555 "stop_memory" => integer 3007504 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8556 "start_memory" => integer 3010144 "stop_time" => float 1737573581.8567 "stop_memory" => integer 3010736 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8587 "start_memory" => integer 3031456 "stop_time" => float 1737573581.8601 "stop_memory" => integer 3032016 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8602 "start_memory" => integer 3034432 "stop_time" => float 1737573581.8618 "stop_memory" => integer 3035024 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8618 "start_memory" => integer 3038624 "stop_time" => float 1737573581.8635 "stop_memory" => integer 3039208 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8636 "start_memory" => integer 3041640 "stop_time" => float 1737573581.8656 "stop_memory" => integer 3042240 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8682 "start_memory" => integer 3056600 "stop_time" => float 1737573581.8702 "stop_memory" => integer 3057160 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8703 "start_memory" => integer 3059576 "stop_time" => float 1737573581.8727 "stop_memory" => integer 3060168 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8744 "start_memory" => integer 3068840 "stop_time" => float 1737573581.8763 "stop_memory" => integer 3069424 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8764 "start_memory" => integer 3071872 "stop_time" => float 1737573581.8787 "stop_memory" => integer 3072456 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8801 "start_memory" => integer 3080840 "stop_time" => float 1737573581.882 "stop_memory" => integer 3081408 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.882 "start_memory" => integer 3084040 "stop_time" => float 1737573581.8843 "stop_memory" => integer 3084632 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8881 "start_memory" => integer 3099376 "stop_time" => float 1737573581.8931 "stop_memory" => integer 3099928 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8932 "start_memory" => integer 3102296 "stop_time" => float 1737573581.8949 "stop_memory" => integer 3102880 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8976 "start_memory" => integer 3107312 "stop_time" => float 1737573581.8991 "stop_memory" => integer 3107872 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.8992 "start_memory" => integer 3110232 "stop_time" => float 1737573581.901 "stop_memory" => integer 3110816 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9016 "start_memory" => integer 3131248 "stop_time" => float 1737573581.9033 "stop_memory" => integer 3131824 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9034 "start_memory" => integer 3134216 "stop_time" => float 1737573581.9054 "stop_memory" => integer 3134808 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9061 "start_memory" => integer 3154416 "stop_time" => float 1737573581.9071 "stop_memory" => integer 3155000 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9071 "start_memory" => integer 3157408 "stop_time" => float 1737573581.9081 "stop_memory" => integer 3158008 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9093 "start_memory" => integer 3181976 "stop_time" => float 1737573581.911 "stop_memory" => integer 3182536 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9111 "start_memory" => integer 3185168 "stop_time" => float 1737573581.9131 "stop_memory" => integer 3185760 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9134 "start_memory" => integer 3200504 "stop_time" => float 1737573581.9151 "stop_memory" => integer 3201072 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9152 "start_memory" => integer 3203464 "stop_time" => float 1737573581.9173 "stop_memory" => integer 3204056 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.918 "start_memory" => integer 3223608 "stop_time" => float 1737573581.9196 "stop_memory" => integer 3224144 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9197 "start_memory" => integer 3226488 "stop_time" => float 1737573581.9214 "stop_memory" => integer 3227064 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9221 "start_memory" => integer 3247048 "stop_time" => float 1737573581.9236 "stop_memory" => integer 3247664 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9237 "start_memory" => integer 3250472 "stop_time" => float 1737573581.9255 "stop_memory" => integer 3251080 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9255 "start_memory" => integer 3261496 "stop_time" => float 1737573581.9276 "stop_memory" => integer 3262000 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9296 "start_memory" => integer 3271616 "stop_time" => float 1737573581.931 "stop_memory" => integer 3272184 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9311 "start_memory" => integer 3274592 "stop_time" => float 1737573581.9327 "stop_memory" => integer 3275192 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9334 "start_memory" => integer 3281648 "stop_time" => float 1737573581.9347 "stop_memory" => integer 3282224 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9348 "start_memory" => integer 3284648 "stop_time" => float 1737573581.9364 "stop_memory" => integer 3287296 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9365 "start_memory" => integer 3296496 "stop_time" => float 1737573581.9384 "stop_memory" => integer 3297000 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.94 "start_memory" => integer 3303816 "stop_time" => float 1737573581.9413 "stop_memory" => integer 3304392 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9414 "start_memory" => integer 3306792 "stop_time" => float 1737573581.9427 "stop_memory" => integer 3307392 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9432 "start_memory" => integer 3315920 "stop_time" => float 1737573581.9443 "stop_memory" => integer 3316496 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9444 "start_memory" => integer 3318920 "stop_time" => float 1737573581.9456 "stop_memory" => integer 3319520 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9456 "start_memory" => integer 3324880 "stop_time" => float 1737573581.9472 "stop_memory" => integer 3325384 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9487 "start_memory" => integer 3327680 "stop_time" => float 1737573581.9499 "stop_memory" => integer 3328224 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.95 "start_memory" => integer 3330584 "stop_time" => float 1737573581.9512 "stop_memory" => integer 3331168 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9547 "start_memory" => integer 3338288 "stop_time" => float 1737573581.956 "stop_memory" => integer 3338864 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.956 "start_memory" => integer 3341448 "stop_time" => float 1737573581.9574 "stop_memory" => integer 3342040 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9576 "start_memory" => integer 3356424 "stop_time" => float 1737573581.9587 "stop_memory" => integer 3356976 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9587 "start_memory" => integer 3359336 "stop_time" => float 1737573581.96 "stop_memory" => integer 3359904 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9604 "start_memory" => integer 3377344 "stop_time" => float 1737573581.9615 "stop_memory" => integer 3377912 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9615 "start_memory" => integer 3380296 "stop_time" => float 1737573581.9627 "stop_memory" => integer 3380880 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9631 "start_memory" => integer 3397680 "stop_time" => float 1737573581.9643 "stop_memory" => integer 3398256 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9643 "start_memory" => integer 3400680 "stop_time" => float 1737573581.9656 "stop_memory" => integer 3401272 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9662 "start_memory" => integer 3416464 "stop_time" => float 1737573581.9674 "stop_memory" => integer 3417032 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9675 "start_memory" => integer 3419616 "stop_time" => float 1737573581.9687 "stop_memory" => integer 3420208 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9689 "start_memory" => integer 3438632 "stop_time" => float 1737573581.9701 "stop_memory" => integer 3439216 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1737573581.9703 "start_memory" => integer 3400016 "stop_time" => float 1737573581.9714 "stop_memory" => integer 3402064 ) )
Gets the total application run time and memory usage. Caches the result so that it can be compared between requests.
list($time, $memory) = Profiler::application();
array
- Execution time, memorypublic static function application()
{
// Load the stats from cache, which is valid for 1 day
$stats = Kohana::cache('profiler_application_stats', NULL, 3600 * 24);
if ( ! is_array($stats) OR $stats['count'] > Profiler::$rollover)
{
// Initialize the stats array
$stats = array(
'min' => array(
'time' => NULL,
'memory' => NULL),
'max' => array(
'time' => NULL,
'memory' => NULL),
'total' => array(
'time' => NULL,
'memory' => NULL),
'count' => 0);
}
// Get the application run time
$time = microtime(TRUE) - KOHANA_START_TIME;
// Get the total memory usage
$memory = memory_get_usage() - KOHANA_START_MEMORY;
// Calculate max time
if ($stats['max']['time'] === NULL OR $time > $stats['max']['time'])
{
$stats['max']['time'] = $time;
}
// Calculate min time
if ($stats['min']['time'] === NULL OR $time < $stats['min']['time'])
{
$stats['min']['time'] = $time;
}
// Add to total time
$stats['total']['time'] += $time;
// Calculate max memory
if ($stats['max']['memory'] === NULL OR $memory > $stats['max']['memory'])
{
$stats['max']['memory'] = $memory;
}
// Calculate min memory
if ($stats['min']['memory'] === NULL OR $memory < $stats['min']['memory'])
{
$stats['min']['memory'] = $memory;
}
// Add to total memory
$stats['total']['memory'] += $memory;
// Another mark has been added to the stats
$stats['count']++;
// Determine the averages
$stats['average'] = array(
'time' => $stats['total']['time'] / $stats['count'],
'memory' => $stats['total']['memory'] / $stats['count']);
// Cache the new stats
Kohana::cache('profiler_application_stats', $stats);
// Set the current application execution time and memory
// Do NOT cache these, they are specific to the current request only
$stats['current']['time'] = $time;
$stats['current']['memory'] = $memory;
// Return the total application run time and memory usage
return $stats;
}
Deletes a benchmark. If an error occurs during the benchmark, it is recommended to delete the benchmark to prevent statistics from being adversely affected.
Profiler::delete($token);
string
$token
required - $tokenvoid
public static function delete($token)
{
// Remove the benchmark
unset(Profiler::$_marks[$token]);
}
Gets the min, max, average and total of profiler groups as an array.
$stats = Profiler::group_stats('test');
mixed
$groups
= NULL - Single group name string, or array with group names; all groups by defaultarray
- Min, max, average, totalpublic static function group_stats($groups = NULL)
{
// Which groups do we need to calculate stats for?
$groups = ($groups === NULL)
? Profiler::groups()
: array_intersect_key(Profiler::groups(), array_flip( (array) $groups));
// All statistics
$stats = array();
foreach ($groups as $group => $names)
{
foreach ($names as $name => $tokens)
{
// Store the stats for each subgroup.
// We only need the values for "total".
$_stats = Profiler::stats($tokens);
$stats[$group][$name] = $_stats['total'];
}
}
// Group stats
$groups = array();
foreach ($stats as $group => $names)
{
// Min and max are unknown by default
$groups[$group]['min'] = $groups[$group]['max'] = array(
'time' => NULL,
'memory' => NULL);
// Total values are always integers
$groups[$group]['total'] = array(
'time' => 0,
'memory' => 0);
foreach ($names as $total)
{
if ( ! isset($groups[$group]['min']['time']) OR $groups[$group]['min']['time'] > $total['time'])
{
// Set the minimum time
$groups[$group]['min']['time'] = $total['time'];
}
if ( ! isset($groups[$group]['min']['memory']) OR $groups[$group]['min']['memory'] > $total['memory'])
{
// Set the minimum memory
$groups[$group]['min']['memory'] = $total['memory'];
}
if ( ! isset($groups[$group]['max']['time']) OR $groups[$group]['max']['time'] < $total['time'])
{
// Set the maximum time
$groups[$group]['max']['time'] = $total['time'];
}
if ( ! isset($groups[$group]['max']['memory']) OR $groups[$group]['max']['memory'] < $total['memory'])
{
// Set the maximum memory
$groups[$group]['max']['memory'] = $total['memory'];
}
// Increase the total time and memory
$groups[$group]['total']['time'] += $total['time'];
$groups[$group]['total']['memory'] += $total['memory'];
}
// Determine the number of names (subgroups)
$count = count($names);
// Determine the averages
$groups[$group]['average']['time'] = $groups[$group]['total']['time'] / $count;
$groups[$group]['average']['memory'] = $groups[$group]['total']['memory'] / $count;
}
return $groups;
}
Returns all the benchmark tokens by group and name as an array.
$groups = Profiler::groups();
array
public static function groups()
{
$groups = array();
foreach (Profiler::$_marks as $token => $mark)
{
// Sort the tokens by the group and name
$groups[$mark['group']][$mark['name']][] = $token;
}
return $groups;
}
Starts a new benchmark and returns a unique token. The returned token must be used when stopping the benchmark.
$token = Profiler::start('test', 'profiler');
string
$group
required - Group namestring
$name
required - Benchmark namestring
public static function start($group, $name)
{
static $counter = 0;
// Create a unique token based on the counter
$token = 'kp/'.base_convert($counter++, 10, 32);
Profiler::$_marks[$token] = array
(
'group' => strtolower($group),
'name' => (string) $name,
// Start the benchmark
'start_time' => microtime(TRUE),
'start_memory' => memory_get_usage(),
// Set the stop keys without values
'stop_time' => FALSE,
'stop_memory' => FALSE,
);
return $token;
}
Gets the min, max, average and total of a set of tokens as an array.
$stats = Profiler::stats($tokens);
array
$tokens
required - Profiler tokensarray
- Min, max, average, totalpublic static function stats(array $tokens)
{
// Min and max are unknown by default
$min = $max = array(
'time' => NULL,
'memory' => NULL);
// Total values are always integers
$total = array(
'time' => 0,
'memory' => 0);
foreach ($tokens as $token)
{
// Get the total time and memory for this benchmark
list($time, $memory) = Profiler::total($token);
if ($max['time'] === NULL OR $time > $max['time'])
{
// Set the maximum time
$max['time'] = $time;
}
if ($min['time'] === NULL OR $time < $min['time'])
{
// Set the minimum time
$min['time'] = $time;
}
// Increase the total time
$total['time'] += $time;
if ($max['memory'] === NULL OR $memory > $max['memory'])
{
// Set the maximum memory
$max['memory'] = $memory;
}
if ($min['memory'] === NULL OR $memory < $min['memory'])
{
// Set the minimum memory
$min['memory'] = $memory;
}
// Increase the total memory
$total['memory'] += $memory;
}
// Determine the number of tokens
$count = count($tokens);
// Determine the averages
$average = array(
'time' => $total['time'] / $count,
'memory' => $total['memory'] / $count);
return array(
'min' => $min,
'max' => $max,
'total' => $total,
'average' => $average);
}
Stops a benchmark.
Profiler::stop($token);
string
$token
required - $tokenvoid
public static function stop($token)
{
// Stop the benchmark
Profiler::$_marks[$token]['stop_time'] = microtime(TRUE);
Profiler::$_marks[$token]['stop_memory'] = memory_get_usage();
}
Gets the total execution time and memory usage of a benchmark as a list.
list($time, $memory) = Profiler::total($token);
string
$token
required - $tokenarray
- Execution time, memorypublic static function total($token)
{
// Import the benchmark data
$mark = Profiler::$_marks[$token];
if ($mark['stop_time'] === FALSE)
{
// The benchmark has not been stopped yet
$mark['stop_time'] = microtime(TRUE);
$mark['stop_memory'] = memory_get_usage();
}
return array
(
// Total time in seconds
$mark['stop_time'] - $mark['start_time'],
// Amount of memory in bytes
$mark['stop_memory'] - $mark['start_memory'],
);
}