Use PDH
PDH全拼是Performance Data Helper,可以通过它很方便的查看系统资源使用情况,以及每个进程的占用资源。
\Process(*)\% Processor Time 每个进程的CPU占用率
\Process(*)\Working Set每个进程的占用内存
typeperf "\Process(*)\% Processor Time"
typeperf "\Process(*)\Working Set"
typeperf "\Memory\% Committed Bytes In Use"
typeperf "\Process(C:\Program Files (x86)\Google\Chrome\Application\chrome.exe)\% Processor Time"
typeperf "\Process(xdict)\Working Set" "\Process(xdict)\% Processor Time" -sc 1