Created
January 13, 2011 15:26
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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