Рассмотрим другой пример: запросы на странице блогов.
Количество запросов равно четырем. Но они потребляют меньше 4% от времени компоненты, которое составляет 0.0228 сек. Важно, что количество запросов не играет решающей роли, важнее время выполнения запросов.
На практике использование этого инструментария позволяет:
* быстро выявлять больные участки сайта;
* находить ошибки программирования, в которых компонент генерирует очень много запросов (или мало, но медленных запросов);
* выявлять особенности и недостатки конфигурации SQL сервера или отдельных таблиц.
[Bitrix\Main\ObjectNotFoundException] Forum is not found. (510) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/forum/lib/forum.php:305 #0: Bitrix\Forum\Forum->__construct(integer) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/forum/lib/internals/entityfabric.php:20 #1: Bitrix\Forum\Forum::getById(integer) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/forum/classes/general/forum_new.php:559 #2: CAllForumNew::GetUserPermission(integer, array) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/forum/include.php:141 #3: ForumCurrUserPermissions(integer) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/components/bitrix/forum.topic.reviews/component.php:177 #4: include(string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component.php:605 #5: CBitrixComponent->__includeComponent() /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component.php:680 #6: CBitrixComponent->includeComponent(string, array, object, boolean) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/main.php:1039 #7: CAllMain->IncludeComponent(string, string, array, object) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/components/bitrix/news/templates/.default/detail.php:150 #8: include(string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component_template.php:789 #9: CBitrixComponentTemplate->__IncludePHPTemplate(array, array, string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component_template.php:884 #10: CBitrixComponentTemplate->IncludeTemplate(array) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component.php:764 #11: CBitrixComponent->showComponentTemplate() /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component.php:712 #12: CBitrixComponent->includeComponentTemplate(string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/components/bitrix/news/component.php:216 #13: include(string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component.php:605 #14: CBitrixComponent->__includeComponent() /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/component.php:680 #15: CBitrixComponent->includeComponent(string, array, boolean, boolean) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/classes/general/main.php:1039 #16: CAllMain->IncludeComponent(string, string, array, boolean) /home/host1328954/k-78.ru/htdocs/suvenir/content/articles/index.php:113 #17: include_once(string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/modules/main/include/urlrewrite.php:159 #18: include_once(string) /home/host1328954/k-78.ru/htdocs/suvenir/bitrix/urlrewrite.php:2