Typeperf

From SQL Server Wiki
Jump to navigation Jump to search

Get CPU Usage from Windows Command Prompt - Stack Overflow

http://stackoverflow.com/questions/9097067/get-cpu-usage-from-windows-command-prompt

Example: Get the current total CPU usage and save it to a file every second:

  • cmd>typeperf "\processor(_total)\% processor time" > perf-in-csv.txt