How can I get the Resource Monitor values in .NET?

只谈情不闲聊 提交于 2019-12-10 21:04:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!