blog

枪手亨利

博客园 首页 新随笔 联系 订阅 管理
WMI Top Sample

http://www.alexfedotov.com/samples/wmitop.asp

WMI provides per-process processor usage information via the Win32_Process class. The KernelModeTime and UserModeTime properties of this class show the amount of time spent by a process in kernel and user modes respectively. These values show the time spent by the process from its beginning, and therefore cannot be used as a processor usage indicator directly. We have to make two snapshots of these values and then use some simple arithmetic to get processor usage.


http://www.alexfedotov.com/samples/wmitop.asp

posted on 2005-12-13 17:22  henry  阅读(284)  评论(0)    收藏  举报