监控每个进程占用的cpu,比如任务管理器的进程tab中的CPU wKioL1YYoXzQUgZVAAVIwUigl-4459.jpg 在代码里,可以通过新建PerformanceCounter来建立监控,其对应的Windows中的自带性能分析工具Perfmon wKiom1YYoWLCh38FAANUeGgY4ek100.jpg 看下该类的定义中,只要有三个概念: categoryName: The name of the performance counter category (performance obje…