我制作了一个示例应用程序,它将显示当前在我的窗口智能手机设备中运行的所有进程详细信息。如NK.exe、filesys.exe等
我想知道我们如何找出哪个模块(线程 ID 和 DLL)正在消耗 CPU 时间?大多数驱动程序线程在 device.exe/NK.exe 下运行,我很确定大部分 CPU 利用率将来自 device.exe/NK.exe 和 Services.exe。
我想知道在device.exe, NK.exe, Services.exe, filesys.exe等下运行的线程是什么?
最佳答案
如何获取进程和线程的 CPU 使用率 - http://www.codeproject.com/Articles/10258/How-to-get-CPU-usage-of-processes-and-threads
CPU 使用率 - http://www.codeproject.com/Articles/10258/How-to-get-CPU-usage-of-processes-and-threads
GetThreadTimes - http://msdn.microsoft.com/en-us/library/ms683237%28VS.85%29.aspx
GetProcessTimes - http://msdn.microsoft.com/en-us/library/ms683223%28VS.85%29.aspx
获取系统时间 - http://msdn.microsoft.com/en-us/library/ms724390%28VS.85%29.aspx
处理器使用情况 - http://www.codeproject.com/Articles/159461/Mobile-Processor-Usage
关于c++ - 在 windows 编程中,有什么方法可以找出哪个模块(线程 ID 和 DLL)正在消耗 CPU 时间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12070405/