Zeex / samp-plugin-profiler

Performance profiler plugin for SA-MP server
http://forum.sa-mp.com/showthread.php?t=271129
BSD 2-Clause "Simplified" License
48 stars 8 forks source link

Make Profiler_Dump log writing optional #23

Closed pedropapa closed 5 years ago

pedropapa commented 7 years ago

Currently, my gamemode is having some issues with CPU usage after running for 2+ hours, which cause the server to freeze (CPU% = 100%) and the only way to stop it is to force kill its process, which also causes Profiler plugin to write nothing to the profiler file.

The only way I found to properly track down gamemode profiler is setting a Timer which calls Profiler_Dump() every X seconds, the problem is that since this function writes some lines in to the server log and I have to run the gamemode for some hours to get to the freezing point, the log is 90% filled with profiler writing info and hard to read. My request is to create an argument to Profiler_Dump() function to prevent it from writing anything to the log, like Profiler_Dump(bool: verbose = true).