监控(Windows)C 中特定进程的 CPU 和内存消耗?
我想监控windows(nt架构-xp,vista,win7)中给定进程的CPU和内存消耗,每隔几秒制作一个图表 我四处搜寻,但只找到了非 C 解决方案(java、c#、c++ 等) 我知道有一个 PerformanceCounter 类,但显然它在 c 中不可用。
谢谢
i would like to monitor the cpu and memory consumption of a given process in windows (nt architecture - xp,vista,win7), every few seconds to make a graph
i have searched around but found only non C solutions only (java,c#,c++, etc)
i know there is a PerformanceCounter class, but obviously it is not available in c.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Win32 性能计数器:
http://msdn.microsoft .com/en-us/library/aa373083%28v=vs.85%29.aspx
但是,如果您只是想要一个工具来显示此信息,请获取 Mark Russinovich 的 Process Explorer。它可以显示每个进程的统计数据和图表。
Win32 Performance Counters:
http://msdn.microsoft.com/en-us/library/aa373083%28v=vs.85%29.aspx
However, If you just want a tool to show you this information, get Mark Russinovich's Process Explorer. It can show per-process stats and graphs.