问题
I need to get some of the values that are in the windows 7 resource monitor. In particular, the memory usage, cpu and bandwidth per process. I've looked into the PerformanceCounter class and I don't see a way to drill down to the process level. The resource monitor has exactly what I am looking for, and before you ask... I know this is re-inventing the wheel but the boss wants this. I looked into WMI as well and it seems most people recommend not using it.
So does anyone know how I can get at least those statistics at the process level using .net classes?
来源:https://stackoverflow.com/questions/11039923/how-can-i-get-the-resource-monitor-values-in-net