| || |
Windows CPU % and RAM data to CSV
I have a software running on Windows 7 that crashes frequently. I assume its %CPU or RAM usage so I want to log to file every each sec the performance all over the night while my software is running.
Does anyone can advice what is the best way to capture perf counters using cmd and save it to csv?
I have noticed that typepref is the command that does this job by collecting predefined counters data and save it to file e.g. >typeperf "\Processor Information(*)\% Processor Time" -si 3 >> C:\Users\Sara\Desktop\test.txt.
Does Logman is better?
Is there another way to track performance counters?
You can use Apache JMeter with PerfMon plugin in order to collect CPU and RAM information (actually it supports 70+ more metrics). They can be stored in CSV files for later analysis and/or plotted directly into JMeter listener.
See How to Monitor Your Server Health & Performance During a JMeter Load Test guide for comprehensive installation, configuration and usage instructions.
See the command line interface for Perfmon, Logman. Also, I notice that you are only covering two of the four finite resource classes: CPU and RAM. The other two are disk and network.