- Регистрация
- 5 Май 2019
- Сообщения
- 1.041
- Симпатии
- 359
- Пол
- Мужской
Представляю свой билд последнего AMXMODX с функцией обнаружения неоптимизированных плагинов! Такого вы точно нигде не видели!
Проверял только на Windows. Т.к нет linux с требуемой версией glibc.
Пример на старнадртных плагинах : (Как и ожидалось самое тяжелое место это plugin_init, но это не так важно при загрузке карты)
L 12/01/2021 - 10:03:28: [admincmd.amxx] performance issue 2. Function plugin_init executed more than 3 ms.
L 12/01/2021 - 10:03:28: [cmdmenu.amxx] performance issue 2. Function plugin_init executed more than 10 ms.
L 12/01/2021 - 10:03:28: [plmenu.amxx] performance issue 2. Function plugin_init executed more than 2 ms.
L 12/01/2021 - 10:03:28: [mapsmenu.amxx] performance issue 2. Function plugin_init executed more than 3 ms.
L 12/01/2021 - 10:03:28: [pluginmenu.amxx] performance issue 2. Function plugin_init executed more than 2 ms.
L 12/01/2021 - 10:03:28: [adminchat.amxx] performance issue 2. Function plugin_init executed more than 2 ms.
Пример выводимых данных на тестовом плагине который ограничивает фпс:
L 12/01/2021 - 10:01:48: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 379 ms.
L 12/01/2021 - 10:01:49: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 392 ms.
L 12/01/2021 - 10:01:50: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 396 ms.
L 12/01/2021 - 10:01:51: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 393 ms.
L 12/01/2021 - 10:01:52: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 390 ms.
L 12/01/2021 - 10:01:53: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 392 ms.
L 12/01/2021 - 10:01:54: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 391 ms.
L 12/01/2021 - 10:01:55: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 392 ms.
L 12/01/2021 - 10:01:56: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 390 ms.
Достаточно скопировать главный модуль amxmodx_mm.dll / amxmodx_mm.so если у вас уже установлена 10 версия AMXMODX.
Added new debug feature: Performance Monitor. by UnrealKaraulov · Pull Request #1019 · alliedmodders/amxmodx
Description: This is new feature for plugins debugging. Search big performance issues for any plugin that in debug mode. No server slow down! Output is plugin and function name, and server executio...
github.com
Проверял только на Windows. Т.к нет linux с требуемой версией glibc.
Пример на старнадртных плагинах : (Как и ожидалось самое тяжелое место это plugin_init, но это не так важно при загрузке карты)
L 12/01/2021 - 10:03:28: [admincmd.amxx] performance issue 2. Function plugin_init executed more than 3 ms.
L 12/01/2021 - 10:03:28: [cmdmenu.amxx] performance issue 2. Function plugin_init executed more than 10 ms.
L 12/01/2021 - 10:03:28: [plmenu.amxx] performance issue 2. Function plugin_init executed more than 2 ms.
L 12/01/2021 - 10:03:28: [mapsmenu.amxx] performance issue 2. Function plugin_init executed more than 3 ms.
L 12/01/2021 - 10:03:28: [pluginmenu.amxx] performance issue 2. Function plugin_init executed more than 2 ms.
L 12/01/2021 - 10:03:28: [adminchat.amxx] performance issue 2. Function plugin_init executed more than 2 ms.
Пример выводимых данных на тестовом плагине который ограничивает фпс:
L 12/01/2021 - 10:01:48: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 379 ms.
L 12/01/2021 - 10:01:49: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 392 ms.
L 12/01/2021 - 10:01:50: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 396 ms.
L 12/01/2021 - 10:01:51: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 393 ms.
L 12/01/2021 - 10:01:52: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 390 ms.
L 12/01/2021 - 10:01:53: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 392 ms.
L 12/01/2021 - 10:01:54: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 391 ms.
L 12/01/2021 - 10:01:55: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 392 ms.
L 12/01/2021 - 10:01:56: [give_me_unreal_fps.amxx] performance issue 2. Function server_frame executed more than 390 ms.
Достаточно скопировать главный модуль amxmodx_mm.dll / amxmodx_mm.so если у вас уже установлена 10 версия AMXMODX.
Последнее редактирование: