获取 CPU 和内存占用
摘要:获取全局 CPU 和内存占用 要获取到全系统中的 CPU 占用率,获取全系统中内存占用,需要首先分别创建这两者的性能计数器: // 创建对 CPU 占用百分比的性能计数器。 var cpuCounter = new PerformanceCounter("Processor", "% Process
阅读全文
posted @ 2022-07-07 16:10
posted @ 2022-07-07 16:10