[Original] performance test: "Windows performance monitor"
Windows Performance Monitor
The following uses Windows Performance Monitor in WINXP as an example:
Open Control Panel-> Administrative Tools-> Performance Logs and alarms, as shown in:
Method 1: Dynamic Monitoring
Right-click and select "add counter", as shown in:
In the "add counter" window, select "process" as the performance object, and set other settings as the default settings. After the settings are complete, click "add" to close the window, you can monitor selected parameters in real time.
Method 2: Counter log tracking
Open Control Panel-> Administrative Tools-> Performance Logs and alarms-> counter logs-> New log settings
Set the new log name "topview_v1.0.0.0_perlog_20060215 ";
Set the log monitoring object and counter. For example, set the performance object "processor". Select "% processor time" as the counter in the list"
Note: "% processor time" indicates the percentage of time that the processor uses to execute non-Idle threads. The calculation method is to measure the non-idle thread activity time within the sample interval, and subtract this value from the sample interval. (Each processor has an idle thread, which consumes a period of time when no other thread can run ). This counter is the main indicator of processor activity and displays the average percentage of busy time observed at sample intervals. This value is calculated using 100% minus the time when the service is not active.
Set log files, such as "log file type", and select "text files (separated by commas )";
Note: "Performance Logs and alarms" are collected in comma-separated or tab-separated format, so it is easy to import spreadsheet programs and prepare for data analysis, so this method is enabled!
Set a schedule, as shown in the following table.
Set successfully, as shown in figure after confirmation:
2. Data Analysis
In C: "perflogslogging, topview_v1.0.0.0_perlog_20060215_000001.csv"
Select "insert"> "chart"> "line chart" in Excel, as shown in