博客
关于我
利用Python的Psutil模块获取系统的信息
阅读量:93 次
发布时间:2019-02-26

本文共 1022 字,大约阅读时间需要 3 分钟。

????CPU??

CPU????????????????????????????????????????????

  • ?????User Time?????????????????
  • ?????System Time????????????????????
  • ?????Idle Time????CPU??idle?????????

????????psutil.cpu_times()???????????????CPU????????percpu=True???

????????

???????????????????????????????????

  • ????Total????????????
  • ??????Used??????????????
  • ?????Free???????????????
  • ?????Buffers????????????????
  • ?????Cache????????????
  • ?????Swap?????????????????????

????psutil.virtual_memory()???????????

????????

????????????????????????????????????????????????

  • ??????Disk Usage????????????
  • IO???IO Counters????????????

????psutil.disk_partitions()??????????psutil.disk_usage('/')??????????????psutil.disk_io_counters()????????IO???perdisk=True????????????IO???

????????

?????????????????????????????????????????????????????

  • ??ID?PIDs??????????ID???
  • ?????Name????????
  • ?????Status?????????????????????????
  • ???????Create Time???????????
  • ???????Memory Info????????????
  • ??IO???IO Counters????????????

????psutil.pids()?????????psutil.Process(pid)??????????????

转载地址:http://kfdz.baihongyu.com/

你可能感兴趣的文章
PHP:cURL error 60: SSL certificate unable to get local issuer certificate
查看>>
PHP:PDOStatement::bindValue参数类型php5和php7问题
查看>>
Q媒体播放器.如何播放具有多个音频的视频?
查看>>
pickle
查看>>
Pickle thread.lock(Pymongo)
查看>>
pickle模块
查看>>
qYKVEtqdDg
查看>>
pid控制
查看>>
PID控制介绍-ChatGPT4o作答
查看>>
PID控制器数字化
查看>>
Qwen-VL项目使用指南
查看>>
PIESDKDoNet二次开发配置注意事项
查看>>
PIGS POJ 1149 网络流
查看>>
PIL Image对图像进行点乘,加上常数(等像素操作)
查看>>
PIL Image转Pytorch Tensor
查看>>
PIL&QOOT;IOERROR:带有大图像的图像文件被截断(&Q)
查看>>
PIL.Image、cv2的img、bytes相互转换
查看>>
PIL.Image进行图像融合显示(Image.blend)
查看>>
pilicat-dfs 霹雳猫-分布式文件系统
查看>>
Pillow lacks the JPEG 2000 plugin
查看>>