c#获取系统和指定进程的CPU和内存占用率

上传者: bitxingxing | 上传时间: 2019-12-21 19:28:56 | 文件大小: 38KB | 文件类型: rar
c#控制台示例程序 封装两个类 一个获取系统的CPU和内存占用率 一个获取指定进程的CPU和内存占用率 支持获取多个所有同名进程的信息

文件下载

资源详情

[{"title":"( 23 个子文件 38KB ) c#获取系统和指定进程的CPU和内存占用率","children":[{"title":"SysInfoExample","children":[{"title":"SysInfoExample","children":[{"title":"使用说明.txt <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"ProInfo.cs <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"SysInfoExample.csproj <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"SysInfo.cs <span style='color:#111;'> 789B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"SysInfoExample.csprojResolveAssemblyReference.cache <span style='color:#111;'> 1.67KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"SysInfoExample.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.44KB </span>","children":null,"spread":false},{"title":"SysInfoExample.exe <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"SysInfoExample.csproj.FileListAbsolute.txt <span style='color:#111;'> 526B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"bin","children":[{"title":"Debug","children":[{"title":"SysInfoExample.exe.config <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"SysInfoExample.vshost.exe.config <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"SysInfoExample.pdb <span style='color:#111;'> 19.50KB </span>","children":null,"spread":false},{"title":"SysInfoExample.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"SysInfoExample.vshost.exe <span style='color:#111;'> 23.66KB </span>","children":null,"spread":false},{"title":"SysInfoExample.exe <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"SysInfoExample.sln <span style='color:#111;'> 1011B </span>","children":null,"spread":false},{"title":"SysInfoExample.v12.suo <span style='color:#111;'> 36.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • wyz6578397 :
    好像是没多大的用处。
    2019-07-22
  • u010465417 :
    win10 x64下指定进程cpu使用率根本获取不了,获取到的值一直是0,调试看指定的进程是能正确获取到,在cpu用使率这一步骤上就无效了。
    2019-07-07
  • TTPLee :
    我把string strTemp = &quot;当前CPU使用率:&quot; + cSysInfo.GetNowCpuUtility().ToString(“0.0”) + &quot;%&quo
    2019-05-20
  • colin668 :
    没用,不能读取CPU占用率
    2019-02-23
  • a19911103hsy :
    可以参考使用,非常感谢!
    2018-05-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明