alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
489 stars 197 forks source link

Added new debug feature: Performance Monitor. #1019

Closed UnrealKaraulov closed 2 years ago

UnrealKaraulov commented 2 years ago

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 execution lag in ms. Output target: current amxlog file.

UnrealKaraulov commented 2 years ago

https://github.com/alliedmodders/amxmodx/pull/1019/commits/5cb6fa0374289ae6bbac75348a456872b127151d

UnrealKaraulov commented 2 years ago

@dvander, thanks for help Maybe something is missing? ( any suggestions ? )

ShootingKing-AM commented 2 years ago

On which platforms did you test this ?

UnrealKaraulov commented 2 years ago

On which platforms did you test this ?

On Windows but I think < chrono > is portabled and can be used at any other OS.

ShootingKing-AM commented 2 years ago

On which platforms did you test this ?

On Windows but I think < chrono > is portabled and can be used at any other OS.

Authors are usually tasked with testing their code cross-platform. Maybe you can or someone can test the code on linux. Assuming it will work is not really a good practice, imo.

@dvander can allow the this workflow to run now so that we can check if there are some compile time errors cross-platform and cross-toolkit.

dvander commented 2 years ago

Stuff in std:: is by definition portable.

dvander commented 2 years ago

Thanks, merged.

UnrealKaraulov commented 2 years ago

@dvander, thanks

justgo97 commented 2 years ago

How to disable performance monitor logs?

UnrealKaraulov commented 2 years ago

How to disable performance monitor logs?

impossible without this pull request : https://github.com/alliedmodders/amxmodx/pull/1028