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 1733760870.3966 "start_memory" => integer 569312 "stop_time" => bool FALSE "stop_memory" => bool FALSE ) "kp/1" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.3967 "start_memory" => integer 571480 "stop_time" => float 1733760870.398 "stop_memory" => integer 572144 ) "kp/2" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.3981 "start_memory" => integer 574568 "stop_time" => float 1733760870.3997 "stop_memory" => integer 575176 ) "kp/3" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.3998 "start_memory" => integer 583392 "stop_time" => float 1733760870.4012 "stop_memory" => integer 583944 ) "kp/4" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4013 "start_memory" => integer 586360 "stop_time" => float 1733760870.4033 "stop_memory" => integer 586952 ) "kp/5" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4035 "start_memory" => integer 591008 "stop_time" => float 1733760870.4047 "stop_memory" => integer 591560 ) "kp/6" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4048 "start_memory" => integer 593944 "stop_time" => float 1733760870.4062 "stop_memory" => integer 594528 ) "kp/7" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4066 "start_memory" => integer 605800 "stop_time" => float 1733760870.4078 "stop_memory" => integer 606360 ) "kp/8" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4078 "start_memory" => integer 608728 "stop_time" => float 1733760870.4093 "stop_memory" => integer 609376 ) "kp/9" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4094 "start_memory" => integer 626840 "stop_time" => float 1733760870.411 "stop_memory" => integer 627416 ) "kp/a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4111 "start_memory" => integer 629808 "stop_time" => float 1733760870.4132 "stop_memory" => integer 630384 ) "kp/b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4133 "start_memory" => integer 642560 "stop_time" => float 1733760870.4147 "stop_memory" => integer 643104 ) "kp/c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4148 "start_memory" => integer 645448 "stop_time" => float 1733760870.4166 "stop_memory" => integer 646024 ) "kp/d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4168 "start_memory" => integer 658912 "stop_time" => float 1733760870.418 "stop_memory" => integer 659512 ) "kp/e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4181 "start_memory" => integer 660592 "stop_time" => float 1733760870.4198 "stop_memory" => integer 661128 ) "kp/f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4199 "start_memory" => integer 663480 "stop_time" => float 1733760870.4214 "stop_memory" => integer 664056 ) "kp/g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4217 "start_memory" => integer 668728 "stop_time" => float 1733760870.4232 "stop_memory" => integer 669408 ) "kp/h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4232 "start_memory" => integer 671752 "stop_time" => float 1733760870.4251 "stop_memory" => integer 672328 ) "kp/i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4253 "start_memory" => integer 695432 "stop_time" => float 1733760870.4271 "stop_memory" => integer 696032 ) "kp/j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4272 "start_memory" => integer 698432 "stop_time" => float 1733760870.4288 "stop_memory" => integer 699032 ) "kp/k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4289 "start_memory" => integer 708184 "stop_time" => float 1733760870.4305 "stop_memory" => integer 708688 ) "kp/l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4306 "start_memory" => integer 709328 "stop_time" => float 1733760870.4321 "stop_memory" => integer 709904 ) "kp/m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4325 "start_memory" => integer 863688 "stop_time" => float 1733760870.434 "stop_memory" => integer 864272 ) "kp/n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4341 "start_memory" => integer 866672 "stop_time" => float 1733760870.4358 "stop_memory" => integer 867272 ) "kp/o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4359 "start_memory" => integer 868288 "stop_time" => float 1733760870.437 "stop_memory" => integer 868864 ) "kp/p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4371 "start_memory" => integer 871264 "stop_time" => float 1733760870.4386 "stop_memory" => integer 871864 ) "kp/q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4387 "start_memory" => integer 878528 "stop_time" => float 1733760870.4401 "stop_memory" => integer 879088 ) "kp/r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4402 "start_memory" => integer 881456 "stop_time" => float 1733760870.4415 "stop_memory" => integer 882048 ) "kp/s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4417 "start_memory" => integer 906248 "stop_time" => float 1733760870.4429 "stop_memory" => integer 906784 ) "kp/t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.443 "start_memory" => integer 909128 "stop_time" => float 1733760870.4444 "stop_memory" => integer 909704 ) "kp/u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760870.4452 "start_memory" => integer 930568 "stop_time" => float 1733760870.4468 "stop_memory" => integer 931168 ) "kp/v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4221 "start_memory" => integer 975536 "stop_time" => float 1733760871.4223 "stop_memory" => integer 976112 ) "kp/10" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4224 "start_memory" => integer 978464 "stop_time" => float 1733760871.4226 "stop_memory" => integer 979304 ) "kp/11" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.423 "start_memory" => integer 990872 "stop_time" => float 1733760871.4233 "stop_memory" => integer 991448 ) "kp/12" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4233 "start_memory" => integer 993840 "stop_time" => float 1733760871.4236 "stop_memory" => integer 994432 ) "kp/13" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4239 "start_memory" => integer 1006280 "stop_time" => float 1733760871.4247 "stop_memory" => integer 1006848 ) "kp/14" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4247 "start_memory" => integer 1009224 "stop_time" => float 1733760871.4256 "stop_memory" => integer 1009800 ) "kp/15" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4258 "start_memory" => integer 1021944 "stop_time" => float 1733760871.4263 "stop_memory" => integer 1022536 ) "kp/16" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4263 "start_memory" => integer 1028400 "stop_time" => float 1733760871.4267 "stop_memory" => integer 1028968 ) "kp/17" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4267 "start_memory" => integer 1031360 "stop_time" => float 1733760871.4272 "stop_memory" => integer 1031952 ) "kp/18" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4273 "start_memory" => integer 1040824 "stop_time" => float 1733760871.4279 "stop_memory" => integer 1041424 ) "kp/19" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.428 "start_memory" => integer 1047744 "stop_time" => float 1733760871.4285 "stop_memory" => integer 1048320 ) "kp/1a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4286 "start_memory" => integer 1053392 "stop_time" => float 1733760871.429 "stop_memory" => integer 1053992 ) "kp/1b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4291 "start_memory" => integer 1059480 "stop_time" => float 1733760871.4295 "stop_memory" => integer 1060056 ) "kp/1c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4296 "start_memory" => integer 1068592 "stop_time" => float 1733760871.4301 "stop_memory" => integer 1069176 ) "kp/1d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4302 "start_memory" => integer 1074560 "stop_time" => float 1733760871.4306 "stop_memory" => integer 1075144 ) "kp/1e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4307 "start_memory" => integer 1082192 "stop_time" => float 1733760871.4311 "stop_memory" => integer 1082792 ) "kp/1f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4312 "start_memory" => integer 1089984 "stop_time" => float 1733760871.4317 "stop_memory" => integer 1090576 ) "kp/1g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4318 "start_memory" => integer 1097064 "stop_time" => float 1733760871.4322 "stop_memory" => integer 1097656 ) "kp/1h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4323 "start_memory" => integer 1103656 "stop_time" => float 1733760871.4327 "stop_memory" => integer 1104248 ) "kp/1i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4328 "start_memory" => integer 1140544 "stop_time" => float 1733760871.4333 "stop_memory" => integer 1141120 ) "kp/1j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4333 "start_memory" => integer 1149160 "stop_time" => float 1733760871.4338 "stop_memory" => integer 1149760 ) "kp/1k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4338 "start_memory" => integer 1157184 "stop_time" => float 1733760871.4343 "stop_memory" => integer 1157760 ) "kp/1l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4344 "start_memory" => integer 1167128 "stop_time" => float 1733760871.4348 "stop_memory" => integer 1167712 ) "kp/1m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4349 "start_memory" => integer 1176392 "stop_time" => float 1733760871.4352 "stop_memory" => integer 1176944 ) "kp/1n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4352 "start_memory" => integer 1179304 "stop_time" => float 1733760871.4355 "stop_memory" => integer 1179888 ) "kp/1o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4356 "start_memory" => integer 1192688 "stop_time" => float 1733760871.4366 "stop_memory" => integer 1193248 ) "kp/1p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4366 "start_memory" => integer 1195608 "stop_time" => float 1733760871.4377 "stop_memory" => integer 1196176 ) "kp/1q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4391 "start_memory" => integer 1240504 "stop_time" => float 1733760871.4403 "stop_memory" => integer 1241088 ) "kp/1r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4441 "start_memory" => integer 1240992 "stop_time" => float 1733760871.4445 "stop_memory" => integer 1241568 ) "kp/1s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4445 "start_memory" => integer 1243976 "stop_time" => float 1733760871.4449 "stop_memory" => integer 1244568 ) "kp/1t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4449 "start_memory" => integer 1253168 "stop_time" => float 1733760871.4453 "stop_memory" => integer 1253752 ) "kp/1u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4453 "start_memory" => integer 1256160 "stop_time" => float 1733760871.4456 "stop_memory" => integer 1256760 ) "kp/1v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4482 "start_memory" => integer 1264768 "stop_time" => float 1733760871.4485 "stop_memory" => integer 1265344 ) "kp/20" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4486 "start_memory" => integer 1267768 "stop_time" => float 1733760871.4489 "stop_memory" => integer 1268880 ) "kp/21" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4492 "start_memory" => integer 1283272 "stop_time" => float 1733760871.4495 "stop_memory" => integer 1283832 ) "kp/22" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4495 "start_memory" => integer 1286224 "stop_time" => float 1733760871.4499 "stop_memory" => integer 1286816 ) "kp/23" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4499 "start_memory" => integer 1296984 "stop_time" => float 1733760871.4502 "stop_memory" => integer 1297568 ) "kp/24" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4503 "start_memory" => integer 1299984 "stop_time" => float 1733760871.4507 "stop_memory" => integer 1300584 ) "kp/25" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4536 "start_memory" => integer 1309208 "stop_time" => float 1733760871.454 "stop_memory" => integer 1309784 ) "kp/26" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4541 "start_memory" => integer 1312208 "stop_time" => float 1733760871.4544 "stop_memory" => integer 1312792 ) "kp/27" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4618 "start_memory" => integer 1334960 "stop_time" => float 1733760871.4622 "stop_memory" => integer 1335544 ) "kp/28" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4623 "start_memory" => integer 1337968 "stop_time" => float 1733760871.4626 "stop_memory" => integer 1338568 ) "kp/29" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4627 "start_memory" => integer 1348504 "stop_time" => float 1733760871.4637 "stop_memory" => integer 1349064 ) "kp/2a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4638 "start_memory" => integer 1351456 "stop_time" => float 1733760871.4642 "stop_memory" => integer 1352048 ) "kp/2b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4647 "start_memory" => integer 1360208 "stop_time" => float 1733760871.465 "stop_memory" => integer 1360776 ) "kp/2c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.465 "start_memory" => integer 1363160 "stop_time" => float 1733760871.4654 "stop_memory" => integer 1363752 ) "kp/2d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4659 "start_memory" => integer 1377512 "stop_time" => float 1733760871.4663 "stop_memory" => integer 1378096 ) "kp/2e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4663 "start_memory" => integer 1380496 "stop_time" => float 1733760871.4667 "stop_memory" => integer 1381080 ) "kp/2f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4694 "start_memory" => integer 1394136 "stop_time" => float 1733760871.4709 "stop_memory" => integer 1394672 ) "kp/2g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.471 "start_memory" => integer 1398056 "stop_time" => float 1733760871.4722 "stop_memory" => integer 1398632 ) "kp/2h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4734 "start_memory" => integer 1401304 "stop_time" => float 1733760871.4739 "stop_memory" => integer 1401904 ) "kp/2i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.474 "start_memory" => integer 1404576 "stop_time" => float 1733760871.4746 "stop_memory" => integer 1405176 ) "kp/2j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4746 "start_memory" => integer 1407880 "stop_time" => float 1733760871.4753 "stop_memory" => integer 1408488 ) "kp/2k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4753 "start_memory" => integer 1413048 "stop_time" => float 1733760871.476 "stop_memory" => integer 1413632 ) "kp/2l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.476 "start_memory" => integer 1416344 "stop_time" => float 1733760871.4767 "stop_memory" => integer 1416952 ) "kp/2m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4767 "start_memory" => integer 1420744 "stop_time" => float 1733760871.4779 "stop_memory" => integer 1421296 ) "kp/2n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4785 "start_memory" => integer 1426224 "stop_time" => float 1733760871.4792 "stop_memory" => integer 1426832 ) "kp/2o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.481 "start_memory" => integer 1432096 "stop_time" => float 1733760871.4815 "stop_memory" => integer 1432688 ) "kp/2p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4821 "start_memory" => integer 1438480 "stop_time" => float 1733760871.4822 "stop_memory" => integer 1439056 ) "kp/2q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4833 "start_memory" => integer 1442856 "stop_time" => float 1733760871.4838 "stop_memory" => integer 1443424 ) "kp/2r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4838 "start_memory" => integer 1445800 "stop_time" => float 1733760871.4844 "stop_memory" => integer 1446392 ) "kp/2s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4854 "start_memory" => integer 1491768 "stop_time" => float 1733760871.4859 "stop_memory" => integer 1492352 ) "kp/2t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4859 "start_memory" => integer 1494776 "stop_time" => float 1733760871.4866 "stop_memory" => integer 1495376 ) "kp/2u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4869 "start_memory" => integer 1510104 "stop_time" => float 1733760871.4874 "stop_memory" => integer 1510696 ) "kp/2v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4875 "start_memory" => integer 1513128 "stop_time" => float 1733760871.4881 "stop_memory" => integer 1513720 ) "kp/30" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4889 "start_memory" => integer 1520840 "stop_time" => float 1733760871.4895 "stop_memory" => integer 1521416 ) "kp/31" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4895 "start_memory" => integer 1523832 "stop_time" => float 1733760871.4901 "stop_memory" => integer 1524432 ) "kp/32" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4905 "start_memory" => integer 1568784 "stop_time" => float 1733760871.4911 "stop_memory" => integer 1569376 ) "kp/33" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4912 "start_memory" => integer 1571808 "stop_time" => float 1733760871.4919 "stop_memory" => integer 1572416 ) "kp/34" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4919 "start_memory" => integer 1576896 "stop_time" => float 1733760871.4925 "stop_memory" => integer 1577464 ) "kp/35" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4925 "start_memory" => integer 1579872 "stop_time" => float 1733760871.4931 "stop_memory" => integer 1580472 ) "kp/36" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4936 "start_memory" => integer 1608064 "stop_time" => float 1733760871.4941 "stop_memory" => integer 1608640 ) "kp/37" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4941 "start_memory" => integer 1611048 "stop_time" => float 1733760871.4948 "stop_memory" => integer 1611648 ) "kp/38" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4951 "start_memory" => integer 1634312 "stop_time" => float 1733760871.4957 "stop_memory" => integer 1634888 ) "kp/39" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4957 "start_memory" => integer 1637288 "stop_time" => float 1733760871.4963 "stop_memory" => integer 1637888 ) "kp/3a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4968 "start_memory" => integer 1650216 "stop_time" => float 1733760871.4974 "stop_memory" => integer 1650808 ) "kp/3b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4974 "start_memory" => integer 1653248 "stop_time" => float 1733760871.4981 "stop_memory" => integer 1653856 ) "kp/3c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4986 "start_memory" => integer 1669816 "stop_time" => float 1733760871.4993 "stop_memory" => integer 1670416 ) "kp/3d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.4993 "start_memory" => integer 1672904 "stop_time" => float 1733760871.5001 "stop_memory" => integer 1673520 ) "kp/3e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5002 "start_memory" => integer 1678080 "stop_time" => float 1733760871.501 "stop_memory" => integer 1678672 ) "kp/3f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5011 "start_memory" => integer 1681128 "stop_time" => float 1733760871.5018 "stop_memory" => integer 1681744 ) "kp/3g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5029 "start_memory" => integer 1728024 "stop_time" => float 1733760871.5037 "stop_memory" => integer 1728616 ) "kp/3h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5037 "start_memory" => integer 1731104 "stop_time" => float 1733760871.5046 "stop_memory" => integer 1731720 ) "kp/3i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5052 "start_memory" => integer 1751920 "stop_time" => float 1733760871.506 "stop_memory" => integer 1752512 ) "kp/3j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5061 "start_memory" => integer 1754992 "stop_time" => float 1733760871.5068 "stop_memory" => integer 1755592 ) "kp/3k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5075 "start_memory" => integer 1774480 "stop_time" => float 1733760871.5082 "stop_memory" => integer 1775080 ) "kp/3l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5083 "start_memory" => integer 1777552 "stop_time" => float 1733760871.5091 "stop_memory" => integer 1778168 ) "kp/3m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5098 "start_memory" => integer 1821272 "stop_time" => float 1733760871.5105 "stop_memory" => integer 1821864 ) "kp/3n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5105 "start_memory" => integer 1824352 "stop_time" => float 1733760871.5113 "stop_memory" => integer 1824968 ) "kp/3o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5127 "start_memory" => integer 1853200 "stop_time" => float 1733760871.5133 "stop_memory" => integer 1853776 ) "kp/3p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5133 "start_memory" => integer 1856232 "stop_time" => float 1733760871.514 "stop_memory" => integer 1856840 ) "kp/3q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5145 "start_memory" => integer 1872456 "stop_time" => float 1733760871.5155 "stop_memory" => integer 1872976 ) "kp/3r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5155 "start_memory" => integer 1875336 "stop_time" => float 1733760871.5167 "stop_memory" => integer 1875912 ) "kp/3s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5171 "start_memory" => integer 1891032 "stop_time" => float 1733760871.5176 "stop_memory" => integer 1891600 ) "kp/3t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5176 "start_memory" => integer 1893960 "stop_time" => float 1733760871.5182 "stop_memory" => integer 1894544 ) "kp/3u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5205 "start_memory" => integer 1901472 "stop_time" => float 1733760871.5215 "stop_memory" => integer 1902032 ) "kp/3v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5215 "start_memory" => integer 1904392 "stop_time" => float 1733760871.5227 "stop_memory" => integer 1904976 ) "kp/40" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5242 "start_memory" => integer 1911872 "stop_time" => float 1733760871.5253 "stop_memory" => integer 1913440 ) "kp/41" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5253 "start_memory" => integer 1915800 "stop_time" => float 1733760871.5265 "stop_memory" => integer 1916376 ) "kp/42" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5268 "start_memory" => integer 1918656 "stop_time" => float 1733760871.5279 "stop_memory" => integer 1919208 ) "kp/43" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5279 "start_memory" => integer 1921552 "stop_time" => float 1733760871.5291 "stop_memory" => integer 1922128 ) "kp/44" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5294 "start_memory" => integer 1928568 "stop_time" => float 1733760871.5305 "stop_memory" => integer 1929120 ) "kp/45" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5305 "start_memory" => integer 1931464 "stop_time" => float 1733760871.5316 "stop_memory" => integer 1932040 ) "kp/46" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5323 "start_memory" => integer 1943120 "stop_time" => float 1733760871.5333 "stop_memory" => integer 1943688 ) "kp/47" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5333 "start_memory" => integer 1946056 "stop_time" => float 1733760871.5345 "stop_memory" => integer 1946640 ) "kp/48" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5358 "start_memory" => integer 1952992 "stop_time" => float 1733760871.5369 "stop_memory" => integer 1953536 ) "kp/49" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5369 "start_memory" => integer 1955880 "stop_time" => float 1733760871.538 "stop_memory" => integer 1956456 ) "kp/4a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5389 "start_memory" => integer 1960760 "stop_time" => float 1733760871.5402 "stop_memory" => integer 1961328 ) "kp/4b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5403 "start_memory" => integer 1963712 "stop_time" => float 1733760871.5416 "stop_memory" => integer 1964296 ) "kp/4c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5422 "start_memory" => integer 1979088 "stop_time" => float 1733760871.5434 "stop_memory" => integer 1979664 ) "kp/4d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5435 "start_memory" => integer 1982056 "stop_time" => float 1733760871.5447 "stop_memory" => integer 1982648 ) "kp/4e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5452 "start_memory" => integer 1997744 "stop_time" => float 1733760871.5466 "stop_memory" => integer 1998312 ) "kp/4f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5466 "start_memory" => integer 2000728 "stop_time" => float 1733760871.5481 "stop_memory" => integer 2001320 ) "kp/4g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5486 "start_memory" => integer 2016072 "stop_time" => float 1733760871.5498 "stop_memory" => integer 2016640 ) "kp/4h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5498 "start_memory" => integer 2019056 "stop_time" => float 1733760871.5512 "stop_memory" => integer 2019648 ) "kp/4i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5517 "start_memory" => integer 2034400 "stop_time" => float 1733760871.5529 "stop_memory" => integer 2034968 ) "kp/4j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.553 "start_memory" => integer 2037384 "stop_time" => float 1733760871.5544 "stop_memory" => integer 2037976 ) "kp/4k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5549 "start_memory" => integer 2052744 "stop_time" => float 1733760871.5562 "stop_memory" => integer 2053312 ) "kp/4l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5562 "start_memory" => integer 2055728 "stop_time" => float 1733760871.5576 "stop_memory" => integer 2056320 ) "kp/4m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5581 "start_memory" => integer 2071072 "stop_time" => float 1733760871.5593 "stop_memory" => integer 2071640 ) "kp/4n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5594 "start_memory" => integer 2074056 "stop_time" => float 1733760871.5608 "stop_memory" => integer 2074648 ) "kp/4o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5613 "start_memory" => integer 2089400 "stop_time" => float 1733760871.5625 "stop_memory" => integer 2089968 ) "kp/4p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5626 "start_memory" => integer 2092384 "stop_time" => float 1733760871.5639 "stop_memory" => integer 2092976 ) "kp/4q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5644 "start_memory" => integer 2107744 "stop_time" => float 1733760871.5656 "stop_memory" => integer 2108312 ) "kp/4r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5656 "start_memory" => integer 2110728 "stop_time" => float 1733760871.567 "stop_memory" => integer 2111320 ) "kp/4s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5675 "start_memory" => integer 2126072 "stop_time" => float 1733760871.5687 "stop_memory" => integer 2126640 ) "kp/4t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5688 "start_memory" => integer 2129056 "stop_time" => float 1733760871.5701 "stop_memory" => integer 2129648 ) "kp/4u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5706 "start_memory" => integer 2144496 "stop_time" => float 1733760871.5719 "stop_memory" => integer 2145064 ) "kp/4v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5719 "start_memory" => integer 2147480 "stop_time" => float 1733760871.5734 "stop_memory" => integer 2148072 ) "kp/50" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5742 "start_memory" => integer 2162824 "stop_time" => float 1733760871.5755 "stop_memory" => integer 2163392 ) "kp/51" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5755 "start_memory" => integer 2165808 "stop_time" => float 1733760871.577 "stop_memory" => integer 2166400 ) "kp/52" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5776 "start_memory" => integer 2181152 "stop_time" => float 1733760871.5789 "stop_memory" => integer 2181720 ) "kp/53" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5789 "start_memory" => integer 2184136 "stop_time" => float 1733760871.5803 "stop_memory" => integer 2184728 ) "kp/54" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5808 "start_memory" => integer 2199464 "stop_time" => float 1733760871.5822 "stop_memory" => integer 2200032 ) "kp/55" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5822 "start_memory" => integer 2202448 "stop_time" => float 1733760871.5837 "stop_memory" => integer 2203040 ) "kp/56" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5842 "start_memory" => integer 2217800 "stop_time" => float 1733760871.5854 "stop_memory" => integer 2218368 ) "kp/57" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5855 "start_memory" => integer 2220784 "stop_time" => float 1733760871.5869 "stop_memory" => integer 2221376 ) "kp/58" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5878 "start_memory" => integer 2236144 "stop_time" => float 1733760871.5891 "stop_memory" => integer 2236712 ) "kp/59" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5892 "start_memory" => integer 2239128 "stop_time" => float 1733760871.591 "stop_memory" => integer 2239720 ) "kp/5a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5916 "start_memory" => integer 2254504 "stop_time" => float 1733760871.5928 "stop_memory" => integer 2255072 ) "kp/5b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5929 "start_memory" => integer 2257488 "stop_time" => float 1733760871.5944 "stop_memory" => integer 2258080 ) "kp/5c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.595 "start_memory" => integer 2272848 "stop_time" => float 1733760871.5964 "stop_memory" => integer 2273416 ) "kp/5d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5964 "start_memory" => integer 2275832 "stop_time" => float 1733760871.5979 "stop_memory" => integer 2276424 ) "kp/5e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.5985 "start_memory" => integer 2291320 "stop_time" => float 1733760871.5999 "stop_memory" => integer 2291888 ) "kp/5f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6 "start_memory" => integer 2294304 "stop_time" => float 1733760871.6015 "stop_memory" => integer 2294896 ) "kp/5g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6022 "start_memory" => integer 2309680 "stop_time" => float 1733760871.6036 "stop_memory" => integer 2310248 ) "kp/5h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6036 "start_memory" => integer 2312664 "stop_time" => float 1733760871.6052 "stop_memory" => integer 2313256 ) "kp/5i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6058 "start_memory" => integer 2328024 "stop_time" => float 1733760871.6072 "stop_memory" => integer 2328592 ) "kp/5j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6072 "start_memory" => integer 2331008 "stop_time" => float 1733760871.6088 "stop_memory" => integer 2331600 ) "kp/5k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6094 "start_memory" => integer 2346368 "stop_time" => float 1733760871.6108 "stop_memory" => integer 2346936 ) "kp/5l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6109 "start_memory" => integer 2349352 "stop_time" => float 1733760871.6125 "stop_memory" => integer 2349944 ) "kp/5m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6131 "start_memory" => integer 2364696 "stop_time" => float 1733760871.6145 "stop_memory" => integer 2365264 ) "kp/5n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6146 "start_memory" => integer 2367680 "stop_time" => float 1733760871.6167 "stop_memory" => integer 2368272 ) "kp/5o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6174 "start_memory" => integer 2383024 "stop_time" => float 1733760871.6189 "stop_memory" => integer 2383592 ) "kp/5p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.619 "start_memory" => integer 2386008 "stop_time" => float 1733760871.6205 "stop_memory" => integer 2386600 ) "kp/5q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6211 "start_memory" => integer 2401368 "stop_time" => float 1733760871.6225 "stop_memory" => integer 2401936 ) "kp/5r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6226 "start_memory" => integer 2404352 "stop_time" => float 1733760871.6244 "stop_memory" => integer 2404944 ) "kp/5s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.625 "start_memory" => integer 2419696 "stop_time" => float 1733760871.6262 "stop_memory" => integer 2420264 ) "kp/5t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6262 "start_memory" => integer 2422680 "stop_time" => float 1733760871.6276 "stop_memory" => integer 2423272 ) "kp/5u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6309 "start_memory" => integer 2439032 "stop_time" => float 1733760871.6316 "stop_memory" => integer 2439584 ) "kp/5v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6317 "start_memory" => integer 2441944 "stop_time" => float 1733760871.6324 "stop_memory" => integer 2442528 ) "kp/60" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6329 "start_memory" => integer 2466464 "stop_time" => float 1733760871.6337 "stop_memory" => integer 2467040 ) "kp/61" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6338 "start_memory" => integer 2469416 "stop_time" => float 1733760871.6346 "stop_memory" => integer 2470008 ) "kp/62" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6352 "start_memory" => integer 2497728 "stop_time" => float 1733760871.636 "stop_memory" => integer 2498296 ) "kp/63" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.636 "start_memory" => integer 2500704 "stop_time" => float 1733760871.6369 "stop_memory" => integer 2501296 ) "kp/64" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6374 "start_memory" => integer 2526512 "stop_time" => float 1733760871.6385 "stop_memory" => integer 2527064 ) "kp/65" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6385 "start_memory" => integer 2529464 "stop_time" => float 1733760871.6398 "stop_memory" => integer 2530048 ) "kp/66" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6413 "start_memory" => integer 2538864 "stop_time" => float 1733760871.6424 "stop_memory" => integer 2539456 ) "kp/67" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6425 "start_memory" => integer 2541848 "stop_time" => float 1733760871.6437 "stop_memory" => integer 2542448 ) "kp/68" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6442 "start_memory" => integer 2553712 "stop_time" => float 1733760871.6455 "stop_memory" => integer 2554304 ) "kp/69" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6455 "start_memory" => integer 2556736 "stop_time" => float 1733760871.6469 "stop_memory" => integer 2557328 ) "kp/6a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6485 "start_memory" => integer 2570592 "stop_time" => float 1733760871.6496 "stop_memory" => integer 2571168 ) "kp/6b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6497 "start_memory" => integer 2573568 "stop_time" => float 1733760871.651 "stop_memory" => integer 2574168 ) "kp/6c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6547 "start_memory" => integer 2586816 "stop_time" => float 1733760871.6558 "stop_memory" => integer 2587360 ) "kp/6d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6559 "start_memory" => integer 2589744 "stop_time" => float 1733760871.6571 "stop_memory" => integer 2590328 ) "kp/6e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6574 "start_memory" => integer 2593336 "stop_time" => float 1733760871.6585 "stop_memory" => integer 2593896 ) "kp/6f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6585 "start_memory" => integer 2596280 "stop_time" => float 1733760871.6598 "stop_memory" => integer 2596864 ) "kp/6g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6602 "start_memory" => integer 2601920 "stop_time" => float 1733760871.6612 "stop_memory" => integer 2602480 ) "kp/6h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6613 "start_memory" => integer 2604864 "stop_time" => float 1733760871.6625 "stop_memory" => integer 2605448 ) "kp/6i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.663 "start_memory" => integer 2610560 "stop_time" => float 1733760871.6641 "stop_memory" => integer 2611120 ) "kp/6j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6642 "start_memory" => integer 2613480 "stop_time" => float 1733760871.6654 "stop_memory" => integer 2614048 ) "kp/6k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6657 "start_memory" => integer 2616040 "stop_time" => float 1733760871.6666 "stop_memory" => integer 2616624 ) "kp/6l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6666 "start_memory" => integer 2620528 "stop_time" => float 1733760871.6675 "stop_memory" => integer 2621088 ) "kp/6m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6675 "start_memory" => integer 2623464 "stop_time" => float 1733760871.6683 "stop_memory" => integer 2624048 ) "kp/6n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6688 "start_memory" => integer 2754160 "stop_time" => float 1733760871.6697 "stop_memory" => integer 2754736 ) "kp/6o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.67 "start_memory" => integer 2802536 "stop_time" => float 1733760871.671 "stop_memory" => integer 2803128 ) "kp/6p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6713 "start_memory" => integer 2848960 "stop_time" => float 1733760871.6719 "stop_memory" => integer 2849544 ) "kp/6q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6719 "start_memory" => integer 2851944 "stop_time" => float 1733760871.6726 "stop_memory" => integer 2852544 ) "kp/6r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6729 "start_memory" => integer 2855712 "stop_time" => float 1733760871.6737 "stop_memory" => integer 2856272 ) "kp/6s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.674 "start_memory" => integer 2900376 "stop_time" => float 1733760871.6748 "stop_memory" => integer 2900952 ) "kp/6t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6751 "start_memory" => integer 2947312 "stop_time" => float 1733760871.676 "stop_memory" => integer 2947904 ) "kp/6u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6764 "start_memory" => integer 2992648 "stop_time" => float 1733760871.6774 "stop_memory" => integer 2993184 ) "kp/6v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6774 "start_memory" => integer 2995536 "stop_time" => float 1733760871.6786 "stop_memory" => integer 2996112 ) "kp/70" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6797 "start_memory" => integer 3007928 "stop_time" => float 1733760871.6806 "stop_memory" => integer 3008544 ) "kp/71" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6807 "start_memory" => integer 3011184 "stop_time" => float 1733760871.6816 "stop_memory" => integer 3011776 ) "kp/72" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6832 "start_memory" => integer 3032496 "stop_time" => float 1733760871.6845 "stop_memory" => integer 3033056 ) "kp/73" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6845 "start_memory" => integer 3035472 "stop_time" => float 1733760871.6859 "stop_memory" => integer 3036064 ) "kp/74" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6859 "start_memory" => integer 3039664 "stop_time" => float 1733760871.6871 "stop_memory" => integer 3040248 ) "kp/75" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6871 "start_memory" => integer 3042680 "stop_time" => float 1733760871.6886 "stop_memory" => integer 3043280 ) "kp/76" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6904 "start_memory" => integer 3057640 "stop_time" => float 1733760871.6918 "stop_memory" => integer 3058200 ) "kp/77" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6918 "start_memory" => integer 3060616 "stop_time" => float 1733760871.6932 "stop_memory" => integer 3061208 ) "kp/78" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6943 "start_memory" => integer 3069880 "stop_time" => float 1733760871.696 "stop_memory" => integer 3070464 ) "kp/79" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.696 "start_memory" => integer 3072912 "stop_time" => float 1733760871.6974 "stop_memory" => integer 3073496 ) "kp/7a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6981 "start_memory" => integer 3081880 "stop_time" => float 1733760871.6993 "stop_memory" => integer 3082448 ) "kp/7b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.6993 "start_memory" => integer 3085080 "stop_time" => float 1733760871.7006 "stop_memory" => integer 3085672 ) "kp/7c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7025 "start_memory" => integer 3100416 "stop_time" => float 1733760871.7036 "stop_memory" => integer 3100968 ) "kp/7d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7036 "start_memory" => integer 3103336 "stop_time" => float 1733760871.7048 "stop_memory" => integer 3103920 ) "kp/7e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7051 "start_memory" => integer 3108352 "stop_time" => float 1733760871.7061 "stop_memory" => integer 3108912 ) "kp/7f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7062 "start_memory" => integer 3111272 "stop_time" => float 1733760871.7073 "stop_memory" => integer 3111856 ) "kp/7g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7078 "start_memory" => integer 3132288 "stop_time" => float 1733760871.709 "stop_memory" => integer 3132864 ) "kp/7h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.709 "start_memory" => integer 3135256 "stop_time" => float 1733760871.7107 "stop_memory" => integer 3135848 ) "kp/7i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7112 "start_memory" => integer 3155456 "stop_time" => float 1733760871.7118 "stop_memory" => integer 3156040 ) "kp/7j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7118 "start_memory" => integer 3158448 "stop_time" => float 1733760871.7125 "stop_memory" => integer 3159048 ) "kp/7k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7131 "start_memory" => integer 3183016 "stop_time" => float 1733760871.7143 "stop_memory" => integer 3183576 ) "kp/7l" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7143 "start_memory" => integer 3186208 "stop_time" => float 1733760871.7158 "stop_memory" => integer 3186800 ) "kp/7m" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.716 "start_memory" => integer 3201544 "stop_time" => float 1733760871.7172 "stop_memory" => integer 3202112 ) "kp/7n" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7173 "start_memory" => integer 3204504 "stop_time" => float 1733760871.7186 "stop_memory" => integer 3205096 ) "kp/7o" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7191 "start_memory" => integer 3224648 "stop_time" => float 1733760871.7202 "stop_memory" => integer 3225184 ) "kp/7p" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7202 "start_memory" => integer 3227528 "stop_time" => float 1733760871.7214 "stop_memory" => integer 3228104 ) "kp/7q" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7219 "start_memory" => integer 3248088 "stop_time" => float 1733760871.723 "stop_memory" => integer 3248704 ) "kp/7r" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.723 "start_memory" => integer 3251512 "stop_time" => float 1733760871.7242 "stop_memory" => integer 3252120 ) "kp/7s" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7243 "start_memory" => integer 3262536 "stop_time" => float 1733760871.7259 "stop_memory" => integer 3263040 ) "kp/7t" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7273 "start_memory" => integer 3272648 "stop_time" => float 1733760871.7284 "stop_memory" => integer 3273216 ) "kp/7u" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7284 "start_memory" => integer 3275624 "stop_time" => float 1733760871.7296 "stop_memory" => integer 3276224 ) "kp/7v" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.73 "start_memory" => integer 3282680 "stop_time" => float 1733760871.731 "stop_memory" => integer 3283256 ) "kp/80" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.731 "start_memory" => integer 3285680 "stop_time" => float 1733760871.7322 "stop_memory" => integer 3288328 ) "kp/81" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7323 "start_memory" => integer 3297528 "stop_time" => float 1733760871.7336 "stop_memory" => integer 3298032 ) "kp/82" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7347 "start_memory" => integer 3304848 "stop_time" => float 1733760871.7358 "stop_memory" => integer 3305424 ) "kp/83" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7358 "start_memory" => integer 3307824 "stop_time" => float 1733760871.7369 "stop_memory" => integer 3308424 ) "kp/84" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7373 "start_memory" => integer 3316952 "stop_time" => float 1733760871.7384 "stop_memory" => integer 3317528 ) "kp/85" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7385 "start_memory" => integer 3319952 "stop_time" => float 1733760871.7396 "stop_memory" => integer 3320552 ) "kp/86" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7397 "start_memory" => integer 3325912 "stop_time" => float 1733760871.741 "stop_memory" => integer 3326416 ) "kp/87" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7421 "start_memory" => integer 3328712 "stop_time" => float 1733760871.7432 "stop_memory" => integer 3329256 ) "kp/88" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7432 "start_memory" => integer 3331616 "stop_time" => float 1733760871.7447 "stop_memory" => integer 3332200 ) "kp/89" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7478 "start_memory" => integer 3339320 "stop_time" => float 1733760871.749 "stop_memory" => integer 3339896 ) "kp/8a" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7491 "start_memory" => integer 3342480 "stop_time" => float 1733760871.7505 "stop_memory" => integer 3343072 ) "kp/8b" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7508 "start_memory" => integer 3357456 "stop_time" => float 1733760871.7519 "stop_memory" => integer 3358008 ) "kp/8c" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7519 "start_memory" => integer 3360368 "stop_time" => float 1733760871.7531 "stop_memory" => integer 3360936 ) "kp/8d" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7536 "start_memory" => integer 3378376 "stop_time" => float 1733760871.755 "stop_memory" => integer 3378944 ) "kp/8e" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7551 "start_memory" => integer 3381328 "stop_time" => float 1733760871.7562 "stop_memory" => integer 3381912 ) "kp/8f" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7568 "start_memory" => integer 3398712 "stop_time" => float 1733760871.758 "stop_memory" => integer 3399288 ) "kp/8g" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.758 "start_memory" => integer 3401712 "stop_time" => float 1733760871.7594 "stop_memory" => integer 3402304 ) "kp/8h" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.76 "start_memory" => integer 3417496 "stop_time" => float 1733760871.7612 "stop_memory" => integer 3418064 ) "kp/8i" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7613 "start_memory" => integer 3420648 "stop_time" => float 1733760871.7627 "stop_memory" => integer 3421240 ) "kp/8j" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7629 "start_memory" => integer 3439664 "stop_time" => float 1733760871.7643 "stop_memory" => integer 3440248 ) "kp/8k" => array(6) ( "group" => string(6) "kohana" "name" => string(9) "find_file" "start_time" => float 1733760871.7646 "start_memory" => integer 3401040 "stop_time" => float 1733760871.7656 "stop_memory" => integer 3403088 ) )
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'],
);
}