Skip to content

Instantly share code, notes, and snippets.

@RhysC
Created January 13, 2011 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RhysC/778038 to your computer and use it in GitHub Desktop.
Save RhysC/778038 to your computer and use it in GitHub Desktop.
Performance monitoring with Logman - versioned CSV file tracking total prosessor time and available memory (Manually started)
# see http://msdn.microsoft.com/en-us/library/cc755366%28v=ws.10%29.aspx
md c:\perflogs\daily_log
#ensure logman has access to the newly created dir
Logman create counter daily_perf_log -v mmddhhmm -c "\Processor(_Total)\% Processor Time" "\Memory\Available bytes" -si 00:15 -o "c:\perflogs\daily_log" -f csv
Logman start daily_perf_log
#to stop collecting data
Logman stop daily_perf_log
#to delete the counter
Logman delete daily_perf_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment