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 1734799579.2705 "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 1734799579.2705 "start_memory" => integer 570496 "stop_time" => float 1734799579.2715 "stop_memory" => integer 571160 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2716 "start_memory" => integer 573584 "stop_time" => float 1734799579.2727 "stop_memory" => integer 574192 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2727 "start_memory" => integer 582408 "stop_time" => float 1734799579.2738 "stop_memory" => integer 582960 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2739 "start_memory" => integer 585376 "stop_time" => float 1734799579.2751 "stop_memory" => integer 585968 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2752 "start_memory" => integer 590024 "stop_time" => float 1734799579.2761 "stop_memory" => integer 590576 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2762 "start_memory" => integer 592960 "stop_time" => float 1734799579.2773 "stop_memory" => integer 593544 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2773 "start_memory" => integer 604816 "stop_time" => float 1734799579.2783 "stop_memory" => integer 605376 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2783 "start_memory" => integer 607744 "stop_time" => float 1734799579.2794 "stop_memory" => integer 608392 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2795 "start_memory" => integer 625856 "stop_time" => float 1734799579.2806 "stop_memory" => integer 626432 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2806 "start_memory" => integer 628824 "stop_time" => float 1734799579.2818 "stop_memory" => integer 629400 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2819 "start_memory" => integer 641576 "stop_time" => float 1734799579.2829 "stop_memory" => integer 642120 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2829 "start_memory" => integer 644464 "stop_time" => float 1734799579.284 "stop_memory" => integer 645040 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.284 "start_memory" => integer 657928 "stop_time" => float 1734799579.2851 "stop_memory" => integer 658528 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2851 "start_memory" => integer 659608 "stop_time" => float 1734799579.2861 "stop_memory" => integer 660144 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2861 "start_memory" => integer 662496 "stop_time" => float 1734799579.2872 "stop_memory" => integer 663072 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2873 "start_memory" => integer 667744 "stop_time" => float 1734799579.2882 "stop_memory" => integer 668424 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2882 "start_memory" => integer 670768 "stop_time" => float 1734799579.2895 "stop_memory" => integer 671344 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2896 "start_memory" => integer 694448 "stop_time" => float 1734799579.2906 "stop_memory" => integer 695048 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2906 "start_memory" => integer 697448 "stop_time" => float 1734799579.2918 "stop_memory" => integer 698048 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2918 "start_memory" => integer 707200 "stop_time" => float 1734799579.293 "stop_memory" => integer 707704 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.293 "start_memory" => integer 708344 "stop_time" => float 1734799579.294 "stop_memory" => integer 708920 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2942 "start_memory" => integer 862704 "stop_time" => float 1734799579.2952 "stop_memory" => integer 863288 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2953 "start_memory" => integer 865688 "stop_time" => float 1734799579.2965 "stop_memory" => integer 866288 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2965 "start_memory" => integer 867304 "stop_time" => float 1734799579.2975 "stop_memory" => integer 867880 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2975 "start_memory" => integer 870280 "stop_time" => float 1734799579.2986 "stop_memory" => integer 870880 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2987 "start_memory" => integer 877544 "stop_time" => float 1734799579.2997 "stop_memory" => integer 878104 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.2997 "start_memory" => integer 880472 "stop_time" => float 1734799579.3007 "stop_memory" => integer 881064 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.3008 "start_memory" => integer 904624 "stop_time" => float 1734799579.3018 "stop_memory" => integer 905160 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.3019 "start_memory" => integer 907504 "stop_time" => float 1734799579.303 "stop_memory" => integer 908080 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799579.3036 "start_memory" => integer 929032 "stop_time" => float 1734799579.3049 "stop_memory" => integer 929632 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2721 "start_memory" => integer 973448 "stop_time" => float 1734799580.2725 "stop_memory" => integer 974024 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2725 "start_memory" => integer 976376 "stop_time" => float 1734799580.2728 "stop_memory" => integer 977216 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2734 "start_memory" => integer 988784 "stop_time" => float 1734799580.2737 "stop_memory" => integer 989360 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2738 "start_memory" => integer 991752 "stop_time" => float 1734799580.2741 "stop_memory" => integer 992344 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2746 "start_memory" => integer 1004192 "stop_time" => float 1734799580.2758 "stop_memory" => integer 1004760 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2759 "start_memory" => integer 1007136 "stop_time" => float 1734799580.2772 "stop_memory" => integer 1007712 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2777 "start_memory" => integer 1019856 "stop_time" => float 1734799580.2784 "stop_memory" => integer 1020448 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2784 "start_memory" => integer 1026312 "stop_time" => float 1734799580.279 "stop_memory" => integer 1026880 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.279 "start_memory" => integer 1029272 "stop_time" => float 1734799580.2797 "stop_memory" => integer 1029864 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2799 "start_memory" => integer 1038736 "stop_time" => float 1734799580.2806 "stop_memory" => integer 1039336 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2807 "start_memory" => integer 1045656 "stop_time" => float 1734799580.2813 "stop_memory" => integer 1046232 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2815 "start_memory" => integer 1051304 "stop_time" => float 1734799580.2821 "stop_memory" => integer 1051904 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2822 "start_memory" => integer 1057392 "stop_time" => float 1734799580.283 "stop_memory" => integer 1057968 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2832 "start_memory" => integer 1066504 "stop_time" => float 1734799580.2838 "stop_memory" => integer 1067088 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.284 "start_memory" => integer 1072472 "stop_time" => float 1734799580.2846 "stop_memory" => integer 1073056 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2847 "start_memory" => integer 1080104 "stop_time" => float 1734799580.2854 "stop_memory" => integer 1080704 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2855 "start_memory" => integer 1087896 "stop_time" => float 1734799580.2861 "stop_memory" => integer 1088488 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2863 "start_memory" => integer 1094976 "stop_time" => float 1734799580.2869 "stop_memory" => integer 1095568 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.287 "start_memory" => integer 1101568 "stop_time" => float 1734799580.2877 "stop_memory" => integer 1102160 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2879 "start_memory" => integer 1138456 "stop_time" => float 1734799580.2885 "stop_memory" => integer 1139032 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2886 "start_memory" => integer 1147072 "stop_time" => float 1734799580.2893 "stop_memory" => integer 1147672 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2894 "start_memory" => integer 1155096 "stop_time" => float 1734799580.2901 "stop_memory" => integer 1155672 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2902 "start_memory" => integer 1165040 "stop_time" => float 1734799580.2909 "stop_memory" => integer 1165624 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2911 "start_memory" => integer 1174304 "stop_time" => float 1734799580.2916 "stop_memory" => integer 1174856 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2916 "start_memory" => integer 1177216 "stop_time" => float 1734799580.2921 "stop_memory" => integer 1177800 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2922 "start_memory" => integer 1190600 "stop_time" => float 1734799580.2937 "stop_memory" => integer 1191160 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2937 "start_memory" => integer 1193520 "stop_time" => float 1734799580.2954 "stop_memory" => integer 1194088 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.2975 "start_memory" => integer 1238416 "stop_time" => float 1734799580.299 "stop_memory" => integer 1239000 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.305 "start_memory" => integer 1238904 "stop_time" => float 1734799580.3056 "stop_memory" => integer 1239480 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3056 "start_memory" => integer 1241888 "stop_time" => float 1734799580.3062 "stop_memory" => integer 1242480 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3063 "start_memory" => integer 1251080 "stop_time" => float 1734799580.3067 "stop_memory" => integer 1251664 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3068 "start_memory" => integer 1254072 "stop_time" => float 1734799580.3073 "stop_memory" => integer 1254672 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3115 "start_memory" => integer 1262680 "stop_time" => float 1734799580.3121 "stop_memory" => integer 1263256 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3122 "start_memory" => integer 1265680 "stop_time" => float 1734799580.3128 "stop_memory" => integer 1266792 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3133 "start_memory" => integer 1281184 "stop_time" => float 1734799580.3138 "stop_memory" => integer 1281744 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3139 "start_memory" => integer 1284136 "stop_time" => float 1734799580.3144 "stop_memory" => integer 1284728 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3145 "start_memory" => integer 1294896 "stop_time" => float 1734799580.3149 "stop_memory" => integer 1295480 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.315 "start_memory" => integer 1297896 "stop_time" => float 1734799580.3156 "stop_memory" => integer 1298496 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3204 "start_memory" => integer 1307120 "stop_time" => float 1734799580.3209 "stop_memory" => integer 1307696 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.321 "start_memory" => integer 1310120 "stop_time" => float 1734799580.3214 "stop_memory" => integer 1310704 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3304 "start_memory" => integer 1332872 "stop_time" => float 1734799580.3309 "stop_memory" => integer 1333456 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.331 "start_memory" => integer 1335880 "stop_time" => float 1734799580.3315 "stop_memory" => integer 1336480 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3315 "start_memory" => integer 1346416 "stop_time" => float 1734799580.3318 "stop_memory" => integer 1346976 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3319 "start_memory" => integer 1349368 "stop_time" => float 1734799580.3323 "stop_memory" => integer 1349960 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3329 "start_memory" => integer 1358144 "stop_time" => float 1734799580.3334 "stop_memory" => integer 1358712 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3335 "start_memory" => integer 1361096 "stop_time" => float 1734799580.3339 "stop_memory" => integer 1361688 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3346 "start_memory" => integer 1375448 "stop_time" => float 1734799580.3349 "stop_memory" => integer 1376032 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.335 "start_memory" => integer 1378432 "stop_time" => float 1734799580.3354 "stop_memory" => integer 1379016 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3388 "start_memory" => integer 1392080 "stop_time" => float 1734799580.3402 "stop_memory" => integer 1392616 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3402 "start_memory" => integer 1396000 "stop_time" => float 1734799580.3417 "stop_memory" => integer 1396576 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3433 "start_memory" => integer 1399240 "stop_time" => float 1734799580.3441 "stop_memory" => integer 1399840 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3442 "start_memory" => integer 1402512 "stop_time" => float 1734799580.3449 "stop_memory" => integer 1403112 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.345 "start_memory" => integer 1405816 "stop_time" => float 1734799580.3457 "stop_memory" => integer 1406424 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3458 "start_memory" => integer 1410984 "stop_time" => float 1734799580.3464 "stop_memory" => integer 1411568 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3464 "start_memory" => integer 1414280 "stop_time" => float 1734799580.3474 "stop_memory" => integer 1414888 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3475 "start_memory" => integer 1418680 "stop_time" => float 1734799580.3493 "stop_memory" => integer 1419232 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3502 "start_memory" => integer 1424160 "stop_time" => float 1734799580.3509 "stop_memory" => integer 1424768 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.353 "start_memory" => integer 1430032 "stop_time" => float 1734799580.3536 "stop_memory" => integer 1430624 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3543 "start_memory" => integer 1436416 "stop_time" => float 1734799580.3544 "stop_memory" => integer 1436992 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3559 "start_memory" => integer 1440792 "stop_time" => float 1734799580.3565 "stop_memory" => integer 1441360 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3566 "start_memory" => integer 1443736 "stop_time" => float 1734799580.3573 "stop_memory" => integer 1444328 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3584 "start_memory" => integer 1489704 "stop_time" => float 1734799580.3591 "stop_memory" => integer 1490288 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3591 "start_memory" => integer 1492712 "stop_time" => float 1734799580.36 "stop_memory" => integer 1493312 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3604 "start_memory" => integer 1508040 "stop_time" => float 1734799580.3611 "stop_memory" => integer 1508632 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3611 "start_memory" => integer 1511064 "stop_time" => float 1734799580.3619 "stop_memory" => integer 1511656 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3632 "start_memory" => integer 1518760 "stop_time" => float 1734799580.3641 "stop_memory" => integer 1519336 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3641 "start_memory" => integer 1521752 "stop_time" => float 1734799580.3648 "stop_memory" => integer 1522352 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3653 "start_memory" => integer 1566720 "stop_time" => float 1734799580.3661 "stop_memory" => integer 1567312 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3662 "start_memory" => integer 1569744 "stop_time" => float 1734799580.367 "stop_memory" => integer 1570352 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.367 "start_memory" => integer 1574832 "stop_time" => float 1734799580.3678 "stop_memory" => integer 1575400 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3678 "start_memory" => integer 1577808 "stop_time" => float 1734799580.3687 "stop_memory" => integer 1578408 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3695 "start_memory" => integer 1606000 "stop_time" => float 1734799580.3703 "stop_memory" => integer 1606576 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3704 "start_memory" => integer 1608984 "stop_time" => float 1734799580.3712 "stop_memory" => integer 1609584 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3719 "start_memory" => integer 1632248 "stop_time" => float 1734799580.3725 "stop_memory" => integer 1632824 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3725 "start_memory" => integer 1635224 "stop_time" => float 1734799580.3732 "stop_memory" => integer 1635824 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3738 "start_memory" => integer 1648152 "stop_time" => float 1734799580.3746 "stop_memory" => integer 1648744 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3747 "start_memory" => integer 1651184 "stop_time" => float 1734799580.3755 "stop_memory" => integer 1651792 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3762 "start_memory" => integer 1667752 "stop_time" => float 1734799580.377 "stop_memory" => integer 1668352 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3771 "start_memory" => integer 1670840 "stop_time" => float 1734799580.3779 "stop_memory" => integer 1671456 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.378 "start_memory" => integer 1676016 "stop_time" => float 1734799580.3789 "stop_memory" => integer 1676608 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3789 "start_memory" => integer 1679064 "stop_time" => float 1734799580.38 "stop_memory" => integer 1679680 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3807 "start_memory" => integer 1725960 "stop_time" => float 1734799580.3816 "stop_memory" => integer 1726552 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3816 "start_memory" => integer 1729040 "stop_time" => float 1734799580.3826 "stop_memory" => integer 1729656 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3832 "start_memory" => integer 1749856 "stop_time" => float 1734799580.3841 "stop_memory" => integer 1750448 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3842 "start_memory" => integer 1752928 "stop_time" => float 1734799580.3853 "stop_memory" => integer 1753528 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3862 "start_memory" => integer 1772416 "stop_time" => float 1734799580.3872 "stop_memory" => integer 1773016 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3873 "start_memory" => integer 1775488 "stop_time" => float 1734799580.3885 "stop_memory" => integer 1776104 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3894 "start_memory" => integer 1819200 "stop_time" => float 1734799580.3904 "stop_memory" => integer 1819792 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3905 "start_memory" => integer 1822280 "stop_time" => float 1734799580.3916 "stop_memory" => integer 1822896 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3936 "start_memory" => integer 1851128 "stop_time" => float 1734799580.3946 "stop_memory" => integer 1851704 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3947 "start_memory" => integer 1854160 "stop_time" => float 1734799580.3958 "stop_memory" => integer 1854768 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3965 "start_memory" => integer 1870384 "stop_time" => float 1734799580.3981 "stop_memory" => integer 1870904 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.3981 "start_memory" => integer 1873264 "stop_time" => float 1734799580.3998 "stop_memory" => integer 1873840 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4005 "start_memory" => integer 1888960 "stop_time" => float 1734799580.4012 "stop_memory" => integer 1889528 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4013 "start_memory" => integer 1891888 "stop_time" => float 1734799580.4021 "stop_memory" => integer 1892472 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4056 "start_memory" => integer 1899400 "stop_time" => float 1734799580.4071 "stop_memory" => integer 1899960 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4072 "start_memory" => integer 1902320 "stop_time" => float 1734799580.409 "stop_memory" => integer 1902904 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4113 "start_memory" => integer 1909800 "stop_time" => float 1734799580.4129 "stop_memory" => integer 1911368 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4129 "start_memory" => integer 1913728 "stop_time" => float 1734799580.4147 "stop_memory" => integer 1914304 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4151 "start_memory" => integer 1916584 "stop_time" => float 1734799580.4166 "stop_memory" => integer 1917136 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4167 "start_memory" => integer 1919480 "stop_time" => float 1734799580.4184 "stop_memory" => integer 1920056 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.419 "start_memory" => integer 1926496 "stop_time" => float 1734799580.4205 "stop_memory" => integer 1927048 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4206 "start_memory" => integer 1929392 "stop_time" => float 1734799580.4223 "stop_memory" => integer 1929968 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4232 "start_memory" => integer 1941048 "stop_time" => float 1734799580.4248 "stop_memory" => integer 1941616 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4248 "start_memory" => integer 1944000 "stop_time" => float 1734799580.4265 "stop_memory" => integer 1944584 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4285 "start_memory" => integer 1950936 "stop_time" => float 1734799580.43 "stop_memory" => integer 1951480 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4301 "start_memory" => integer 1953824 "stop_time" => float 1734799580.4318 "stop_memory" => integer 1954400 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4329 "start_memory" => integer 1958704 "stop_time" => float 1734799580.4346 "stop_memory" => integer 1959272 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4347 "start_memory" => integer 1961656 "stop_time" => float 1734799580.4366 "stop_memory" => integer 1962240 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4374 "start_memory" => integer 1977032 "stop_time" => float 1734799580.4391 "stop_memory" => integer 1977608 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4392 "start_memory" => integer 1980000 "stop_time" => float 1734799580.4411 "stop_memory" => integer 1980592 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4418 "start_memory" => integer 1995688 "stop_time" => float 1734799580.4438 "stop_memory" => integer 1996256 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4439 "start_memory" => integer 1998672 "stop_time" => float 1734799580.446 "stop_memory" => integer 1999264 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4467 "start_memory" => integer 2014016 "stop_time" => float 1734799580.4485 "stop_memory" => integer 2014584 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4486 "start_memory" => integer 2017000 "stop_time" => float 1734799580.4505 "stop_memory" => integer 2017592 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4512 "start_memory" => integer 2032344 "stop_time" => float 1734799580.4532 "stop_memory" => integer 2032912 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4532 "start_memory" => integer 2035328 "stop_time" => float 1734799580.4552 "stop_memory" => integer 2035920 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4559 "start_memory" => integer 2050688 "stop_time" => float 1734799580.4578 "stop_memory" => integer 2051256 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4579 "start_memory" => integer 2053672 "stop_time" => float 1734799580.46 "stop_memory" => integer 2054264 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4609 "start_memory" => integer 2069016 "stop_time" => float 1734799580.4628 "stop_memory" => integer 2069584 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4628 "start_memory" => integer 2072000 "stop_time" => float 1734799580.4648 "stop_memory" => integer 2072592 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4655 "start_memory" => integer 2087344 "stop_time" => float 1734799580.4672 "stop_memory" => integer 2087912 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4673 "start_memory" => integer 2090328 "stop_time" => float 1734799580.4694 "stop_memory" => integer 2090920 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4701 "start_memory" => integer 2105688 "stop_time" => float 1734799580.472 "stop_memory" => integer 2106256 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.472 "start_memory" => integer 2108672 "stop_time" => float 1734799580.4741 "stop_memory" => integer 2109264 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4748 "start_memory" => integer 2124016 "stop_time" => float 1734799580.477 "stop_memory" => integer 2124584 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4771 "start_memory" => integer 2127000 "stop_time" => float 1734799580.4792 "stop_memory" => integer 2127592 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4799 "start_memory" => integer 2142440 "stop_time" => float 1734799580.4818 "stop_memory" => integer 2143008 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4818 "start_memory" => integer 2145424 "stop_time" => float 1734799580.4839 "stop_memory" => integer 2146016 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4846 "start_memory" => integer 2160768 "stop_time" => float 1734799580.4864 "stop_memory" => integer 2161336 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4864 "start_memory" => integer 2163752 "stop_time" => float 1734799580.4885 "stop_memory" => integer 2164344 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4893 "start_memory" => integer 2179096 "stop_time" => float 1734799580.491 "stop_memory" => integer 2179664 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4911 "start_memory" => integer 2182080 "stop_time" => float 1734799580.4932 "stop_memory" => integer 2182672 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4938 "start_memory" => integer 2197408 "stop_time" => float 1734799580.4957 "stop_memory" => integer 2197976 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4957 "start_memory" => integer 2200392 "stop_time" => float 1734799580.498 "stop_memory" => integer 2200984 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.4987 "start_memory" => integer 2215736 "stop_time" => float 1734799580.5006 "stop_memory" => integer 2216304 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5006 "start_memory" => integer 2218720 "stop_time" => float 1734799580.5027 "stop_memory" => integer 2219312 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5035 "start_memory" => integer 2234080 "stop_time" => float 1734799580.5055 "stop_memory" => integer 2234648 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5056 "start_memory" => integer 2237064 "stop_time" => float 1734799580.5077 "stop_memory" => integer 2237656 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5084 "start_memory" => integer 2252440 "stop_time" => float 1734799580.5102 "stop_memory" => integer 2253008 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5103 "start_memory" => integer 2255424 "stop_time" => float 1734799580.5124 "stop_memory" => integer 2256016 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5131 "start_memory" => integer 2270784 "stop_time" => float 1734799580.5149 "stop_memory" => integer 2271352 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5149 "start_memory" => integer 2273768 "stop_time" => float 1734799580.517 "stop_memory" => integer 2274360 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5177 "start_memory" => integer 2289256 "stop_time" => float 1734799580.5194 "stop_memory" => integer 2289824 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5195 "start_memory" => integer 2292240 "stop_time" => float 1734799580.5216 "stop_memory" => integer 2292832 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5222 "start_memory" => integer 2307616 "stop_time" => float 1734799580.5241 "stop_memory" => integer 2308184 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5242 "start_memory" => integer 2310600 "stop_time" => float 1734799580.5262 "stop_memory" => integer 2311192 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5269 "start_memory" => integer 2325960 "stop_time" => float 1734799580.5287 "stop_memory" => integer 2326528 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5288 "start_memory" => integer 2328944 "stop_time" => float 1734799580.5308 "stop_memory" => integer 2329536 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5315 "start_memory" => integer 2344304 "stop_time" => float 1734799580.5333 "stop_memory" => integer 2344872 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5334 "start_memory" => integer 2347288 "stop_time" => float 1734799580.5354 "stop_memory" => integer 2347880 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5361 "start_memory" => integer 2362632 "stop_time" => float 1734799580.538 "stop_memory" => integer 2363200 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.538 "start_memory" => integer 2365616 "stop_time" => float 1734799580.5401 "stop_memory" => integer 2366208 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5409 "start_memory" => integer 2380960 "stop_time" => float 1734799580.5428 "stop_memory" => integer 2381528 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5429 "start_memory" => integer 2383944 "stop_time" => float 1734799580.5451 "stop_memory" => integer 2384536 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5458 "start_memory" => integer 2399304 "stop_time" => float 1734799580.5476 "stop_memory" => integer 2399872 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5476 "start_memory" => integer 2402288 "stop_time" => float 1734799580.5497 "stop_memory" => integer 2402880 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5504 "start_memory" => integer 2417632 "stop_time" => float 1734799580.5522 "stop_memory" => integer 2418200 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5523 "start_memory" => integer 2420616 "stop_time" => float 1734799580.5543 "stop_memory" => integer 2421208 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5588 "start_memory" => integer 2436968 "stop_time" => float 1734799580.5597 "stop_memory" => integer 2437520 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5598 "start_memory" => integer 2439880 "stop_time" => float 1734799580.5608 "stop_memory" => integer 2440464 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5615 "start_memory" => integer 2464400 "stop_time" => float 1734799580.5625 "stop_memory" => integer 2464976 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5625 "start_memory" => integer 2467352 "stop_time" => float 1734799580.5637 "stop_memory" => integer 2467944 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5645 "start_memory" => integer 2495672 "stop_time" => float 1734799580.5655 "stop_memory" => integer 2496240 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5656 "start_memory" => integer 2498648 "stop_time" => float 1734799580.5667 "stop_memory" => integer 2499240 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5676 "start_memory" => integer 2524456 "stop_time" => float 1734799580.5691 "stop_memory" => integer 2525008 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5691 "start_memory" => integer 2527408 "stop_time" => float 1734799580.5708 "stop_memory" => integer 2527992 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5727 "start_memory" => integer 2536808 "stop_time" => float 1734799580.5742 "stop_memory" => integer 2537400 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5743 "start_memory" => integer 2539792 "stop_time" => float 1734799580.576 "stop_memory" => integer 2540392 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5766 "start_memory" => integer 2551656 "stop_time" => float 1734799580.5785 "stop_memory" => integer 2552248 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5786 "start_memory" => integer 2554680 "stop_time" => float 1734799580.5804 "stop_memory" => integer 2555272 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5825 "start_memory" => integer 2568536 "stop_time" => float 1734799580.5841 "stop_memory" => integer 2569112 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5842 "start_memory" => integer 2571512 "stop_time" => float 1734799580.5859 "stop_memory" => integer 2572112 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5913 "start_memory" => integer 2584760 "stop_time" => float 1734799580.5931 "stop_memory" => integer 2585304 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5931 "start_memory" => integer 2587688 "stop_time" => float 1734799580.5951 "stop_memory" => integer 2588272 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5957 "start_memory" => integer 2591280 "stop_time" => float 1734799580.5974 "stop_memory" => integer 2591840 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5975 "start_memory" => integer 2594224 "stop_time" => float 1734799580.5993 "stop_memory" => integer 2594808 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.5999 "start_memory" => integer 2599864 "stop_time" => float 1734799580.6016 "stop_memory" => integer 2600424 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6016 "start_memory" => integer 2602808 "stop_time" => float 1734799580.6035 "stop_memory" => integer 2603392 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6044 "start_memory" => integer 2608504 "stop_time" => float 1734799580.6059 "stop_memory" => integer 2609064 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.606 "start_memory" => integer 2611424 "stop_time" => float 1734799580.6078 "stop_memory" => integer 2611992 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6083 "start_memory" => integer 2613984 "stop_time" => float 1734799580.6096 "stop_memory" => integer 2614568 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6096 "start_memory" => integer 2618472 "stop_time" => float 1734799580.6106 "stop_memory" => integer 2619032 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6107 "start_memory" => integer 2621408 "stop_time" => float 1734799580.6119 "stop_memory" => integer 2621992 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6125 "start_memory" => integer 2752088 "stop_time" => float 1734799580.6139 "stop_memory" => integer 2752664 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6145 "start_memory" => integer 2800464 "stop_time" => float 1734799580.616 "stop_memory" => integer 2801056 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6165 "start_memory" => integer 2846888 "stop_time" => float 1734799580.6173 "stop_memory" => integer 2847472 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6174 "start_memory" => integer 2849872 "stop_time" => float 1734799580.6183 "stop_memory" => integer 2850472 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6187 "start_memory" => integer 2853640 "stop_time" => float 1734799580.6199 "stop_memory" => integer 2854200 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6204 "start_memory" => integer 2898304 "stop_time" => float 1734799580.6216 "stop_memory" => integer 2898880 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6219 "start_memory" => integer 2945240 "stop_time" => float 1734799580.6232 "stop_memory" => integer 2945832 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6237 "start_memory" => integer 2990576 "stop_time" => float 1734799580.6251 "stop_memory" => integer 2991112 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6252 "start_memory" => integer 2993464 "stop_time" => float 1734799580.6268 "stop_memory" => integer 2994040 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6283 "start_memory" => integer 3005856 "stop_time" => float 1734799580.6296 "stop_memory" => integer 3006472 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6296 "start_memory" => integer 3009112 "stop_time" => float 1734799580.6311 "stop_memory" => integer 3009704 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6334 "start_memory" => integer 3030424 "stop_time" => float 1734799580.6352 "stop_memory" => integer 3030984 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6353 "start_memory" => integer 3033400 "stop_time" => float 1734799580.6373 "stop_memory" => integer 3033992 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6373 "start_memory" => integer 3037592 "stop_time" => float 1734799580.6392 "stop_memory" => integer 3038176 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6392 "start_memory" => integer 3040608 "stop_time" => float 1734799580.6413 "stop_memory" => integer 3041208 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6437 "start_memory" => integer 3055568 "stop_time" => float 1734799580.6456 "stop_memory" => integer 3056128 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6457 "start_memory" => integer 3058544 "stop_time" => float 1734799580.6481 "stop_memory" => integer 3059136 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6496 "start_memory" => integer 3067808 "stop_time" => float 1734799580.6514 "stop_memory" => integer 3068392 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6515 "start_memory" => integer 3070840 "stop_time" => float 1734799580.6536 "stop_memory" => integer 3071424 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6548 "start_memory" => integer 3079808 "stop_time" => float 1734799580.6565 "stop_memory" => integer 3080376 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6566 "start_memory" => integer 3083008 "stop_time" => float 1734799580.6585 "stop_memory" => integer 3083600 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6618 "start_memory" => integer 3098344 "stop_time" => float 1734799580.6633 "stop_memory" => integer 3098896 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6634 "start_memory" => integer 3101264 "stop_time" => float 1734799580.6651 "stop_memory" => integer 3101848 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6656 "start_memory" => integer 3106280 "stop_time" => float 1734799580.6671 "stop_memory" => integer 3106840 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6671 "start_memory" => integer 3109200 "stop_time" => float 1734799580.6688 "stop_memory" => integer 3109784 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6694 "start_memory" => integer 3130216 "stop_time" => float 1734799580.671 "stop_memory" => integer 3130792 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6711 "start_memory" => integer 3133184 "stop_time" => float 1734799580.6731 "stop_memory" => integer 3133776 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6737 "start_memory" => integer 3153384 "stop_time" => float 1734799580.6745 "stop_memory" => integer 3153968 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6746 "start_memory" => integer 3156376 "stop_time" => float 1734799580.6756 "stop_memory" => integer 3156976 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6766 "start_memory" => integer 3180944 "stop_time" => float 1734799580.6783 "stop_memory" => integer 3181504 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6784 "start_memory" => integer 3184136 "stop_time" => float 1734799580.6803 "stop_memory" => integer 3184728 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6806 "start_memory" => integer 3199472 "stop_time" => float 1734799580.6822 "stop_memory" => integer 3200040 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6823 "start_memory" => integer 3202432 "stop_time" => float 1734799580.6842 "stop_memory" => integer 3203024 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6847 "start_memory" => integer 3222576 "stop_time" => float 1734799580.6862 "stop_memory" => integer 3223112 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6862 "start_memory" => integer 3225456 "stop_time" => float 1734799580.6879 "stop_memory" => integer 3226032 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6885 "start_memory" => integer 3246016 "stop_time" => float 1734799580.69 "stop_memory" => integer 3246632 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6901 "start_memory" => integer 3249440 "stop_time" => float 1734799580.6918 "stop_memory" => integer 3250048 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6918 "start_memory" => integer 3260464 "stop_time" => float 1734799580.6938 "stop_memory" => integer 3260968 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6956 "start_memory" => integer 3270552 "stop_time" => float 1734799580.697 "stop_memory" => integer 3271120 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.6971 "start_memory" => integer 3273528 "stop_time" => float 1734799580.6986 "stop_memory" => integer 3274128 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.699 "start_memory" => integer 3280584 "stop_time" => float 1734799580.7004 "stop_memory" => integer 3281160 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7005 "start_memory" => integer 3283584 "stop_time" => float 1734799580.702 "stop_memory" => integer 3286232 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7021 "start_memory" => integer 3295432 "stop_time" => float 1734799580.7039 "stop_memory" => integer 3295936 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7055 "start_memory" => integer 3302752 "stop_time" => float 1734799580.7068 "stop_memory" => integer 3303328 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7069 "start_memory" => integer 3305728 "stop_time" => float 1734799580.7085 "stop_memory" => integer 3306328 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.709 "start_memory" => integer 3314856 "stop_time" => float 1734799580.7105 "stop_memory" => integer 3315432 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7105 "start_memory" => integer 3317856 "stop_time" => float 1734799580.7121 "stop_memory" => integer 3318456 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7122 "start_memory" => integer 3323816 "stop_time" => float 1734799580.714 "stop_memory" => integer 3324320 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7158 "start_memory" => integer 3326616 "stop_time" => float 1734799580.7174 "stop_memory" => integer 3327160 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7174 "start_memory" => integer 3329520 "stop_time" => float 1734799580.7191 "stop_memory" => integer 3330104 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7235 "start_memory" => integer 3337224 "stop_time" => float 1734799580.7252 "stop_memory" => integer 3337800 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7253 "start_memory" => integer 3340384 "stop_time" => float 1734799580.7271 "stop_memory" => integer 3340976 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7275 "start_memory" => integer 3355360 "stop_time" => float 1734799580.729 "stop_memory" => integer 3355912 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7291 "start_memory" => integer 3358272 "stop_time" => float 1734799580.7307 "stop_memory" => integer 3358840 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7313 "start_memory" => integer 3376280 "stop_time" => float 1734799580.7329 "stop_memory" => integer 3376848 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7329 "start_memory" => integer 3379232 "stop_time" => float 1734799580.7346 "stop_memory" => integer 3379816 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7352 "start_memory" => integer 3396616 "stop_time" => float 1734799580.7369 "stop_memory" => integer 3397192 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7369 "start_memory" => integer 3399616 "stop_time" => float 1734799580.7389 "stop_memory" => integer 3400208 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7398 "start_memory" => integer 3415400 "stop_time" => float 1734799580.7416 "stop_memory" => integer 3415968 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7416 "start_memory" => integer 3418552 "stop_time" => float 1734799580.7435 "stop_memory" => integer 3419144 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7438 "start_memory" => integer 3437568 "stop_time" => float 1734799580.7455 "stop_memory" => integer 3438152 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1734799580.7458 "start_memory" => integer 3399496 "stop_time" => float 1734799580.7473 "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'],
);
}