python for windows 获取进程列表 part2 (自学备注)
2011-10-11 10:01
525 查看
import win32pdh aa=win32pdh.EnumObjectItems(None,None,'process',win32pdh.PERF_DETAIL_WIZARD)
aa的返回值:
(['% Processor Time', '% User Time', '% Privileged Time', 'Page Faults/sec', 'Working Set Peak', 'Working Set', 'Page File Bytes Peak', 'Page File Bytes', 'Private Bytes', 'Thread Count', 'Priority Base', 'Elapsed Time', 'ID Process', 'Creating Process ID', 'Pool Paged Bytes', 'Pool Nonpaged Bytes', 'Handle Count', 'IO Read Operations/sec', 'IO Write Operations/sec', 'IO Data Operations/sec', 'IO Other Operations/sec', 'IO Read Bytes/sec', 'IO Write Bytes/sec', 'IO Data Bytes/sec', 'IO Other Bytes/sec', 'Working Set - Private'], ['Idle', 'System', 'smss', 'csrss', 'csrss', 'wininit', 'winlogon', 'services', 'lsass', 'lsm', 'svchost', 'svchost', 'LogonUI', 'svchost', 'svchost', 'svchost', 'svchost', 'ZhuDongFangYu', 'svchost', 'spoolsv', 'svchost', 'EngineServer', 'FrameworkService', 'VsTskMgr', 'mfevtps', 'sqlservr', 'naPrdMgr', 'TCPSVCS', 'snmp', 'sqlwriter', 'Mcshield', 'mfeann', 'conhost', 'IMECMNT', 'svchost', 'SearchIndexer', 'csrss', 'winlogon', 'taskhost', 'taskeng', 'rdpclip', 'MacTray', 'dwm', 'explorer', 'shstat', '360tray', 'QQ', 'TXPlatform', 'sogoupinyintray', 'chrome', 'chrome', 'chrome', 'chrome', 'chrome', 'rundll32', 'chrome', 'OUTLOOK', 'OSPPSVC', 'Pythonwin', 'chrome', 'MSACCESS', 'chrome', 'hh', 'svchost', 'svchost', 'mscorsvw', 'chrome', '_Total'])
需要先安装pywin32
相关文章推荐
- windows 获取进程列表的几种方式
- Windows下如何获取与手机设备有关的进程信息(Python版)
- 获取windows进程列表,并以字符串形式查询是否存在某一进程
- 1.python获取windows软件安装列表
- 获取windows进程列表,并以字符串形式查询是否存在某一进程
- python通过wmi获取windows下进程的信息
- Python在windows下的分布式进程
- 获取进程列表和结束进程
- python window安装包(Unofficial Windows Binaries for Python Extension Packages)
- Python获取Linux或Windows系统的基本信息
- Windows Python 版本切换工具 --- Switch Python Version Tool For Windows
- Python学习笔记十二:列表(4)--len 、in、For的使用
- 获取Windows系统的进程运行信息
- python获取ppt中的备注
- [置顶] 无限遍历,python实现在多维嵌套字典、列表、元组的JSON中获取数据
- Python获取pid和进程名字
- python分布式进程(windows下)
- Windows下用C语言获取进程cpu使用率,内存使用,IO情况
- python: 监控windows 下进程
- python 计算windows上的某个进程的cpu使用率