在(Windows)C中监视特定进程的CPU和内存消耗吗? [英] Monitor CPU and memory consumption of a specific processes in (Windows) C?
问题描述
谢谢
Win32性能计数器:
http://msdn.microsoft. com/en-us/library/aa373083%28v = vs.85%29.aspx
开发者群体:
性能计数器设计为供C和 C ++开发人员.
但是,如果您只是想要一个工具来向您显示此信息,请获取Mark Russinovich的流程资源管理器.它可以显示每个进程的统计信息和图表.
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
Win32 Performance Counters:
http://msdn.microsoft.com/en-us/library/aa373083%28v=vs.85%29.aspx
Developer Audience:
Performance Counters is designed for use by C and C++ developers.
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.
这篇关于在(Windows)C中监视特定进程的CPU和内存消耗吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!