MCGalaxy
MCGalaxy copied to clipboard
Perf counter issues with /sinfo on mono
-
CPU usage shows 0 (perhaps we can use Process.GetCurrentProcess().TotalProcesserTime insteaD)
-
memory usage count way off
After five years, first issue (CPU usage showing 0.00%) was resolved in a1a7704d066ea525735c96d976c4adf4d054d61d
(note: mono expected process ID instead of process name in performance counter, which was why it showed 0.00%. Switched to using TotalProcessorTime instead though so it'd also work on .NET core)