Get CPU usage and Ram usage without a PerformanceCounter object
-
I have attempted to get CPU and RAM usage with a System.Diagnostics.PerformanceCounter, but not only are they a pain in the ass to work with, they don't work the same on different systems. Is there another way to get this information without using a performance counter?
Giveaway of the day .com ------------------------------------------------------------------ Dream.In.Code | Programmer's Heaven | CodeGuru "Failure is only the opportunity to begin again, this time more wisely."
-
I have attempted to get CPU and RAM usage with a System.Diagnostics.PerformanceCounter, but not only are they a pain in the ass to work with, they don't work the same on different systems. Is there another way to get this information without using a performance counter?
Giveaway of the day .com ------------------------------------------------------------------ Dream.In.Code | Programmer's Heaven | CodeGuru "Failure is only the opportunity to begin again, this time more wisely."
-
I use the
Process
class rather. UseProcess.GetCurrentProcess()
to get the current process.xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)Um, not what i want. I don't want to get the current process, i want to get the CPU and memory usage. I have no interest in the current process.
Giveaway of the day .com ------------------------------------------------------------------ Dream.In.Code | Programmer's Heaven | CodeGuru "Failure is only the opportunity to begin again, this time more wisely."