I'm trying to get the total memory usage of current process from the .netcore application.
System.Diagnostics.Process.GetCurrentProcess().PagedMemorySize64
works fine on windows but it returns zero on Linux machine. I also tried System.Diagnostics.PerformanceCounter package
to get the value but it throws platform is not supported exception.
I'm using .netcore 3.1 as framework.