C# 使用 PerformanceCounter 获取 CPU 和 硬盘的使用率: 先看界面: 建一个 Windows Form 桌面程序,代码如下: using System; using System.ComponentModel; using System.Windows.Forms; using System.Diagnostics; using System.Threading; namespace PerformanceCounterApp { public partial cla
github地址:https://github.com/charygao/SmsComputerMonitor 软件用于实时监控当前系统资源等情况,并调用接口,当资源被超额占用时,发送警报到个人手机:界面模拟Console的显示方式,信息缓冲大小由配置决定:可以定制监控的资源,包括: cpu使用率: 内存使用率: 磁盘使用率: 网络使用率: 进程线程数: using System; using System.Collections.Generic; using System.Diagnostic