How do we track and log system and process information on a Windows operating system?
Windows system tools available for monitoring almost every type of performance, including CPU, memory,
file system and network usage. You do not have to rely merely on the Task Manager.
There is a Windows utility called PerfMon (Performance Monitor) that has the ability to graph and log
performance metrics for specific processes, as well as set alarms and timing for performance monitoring
and logging.
Steps to View and Log Performance Data Using Windows 7 Performance Monitor:
1.Make sure LabVIEW is open.
2.Click on the Start Menu and click Run.
3.Type perfmon into the Run command prompt and click OK.
4.You will then see the Performance Monitor pop up.
5.Click on the green ‘+’ sign near the top of the Performance Monitor Window to bring up the Add Counters
window.
4.You will then see the Performance Monitor pop up.
5.Click on the green ‘+’ sign near the top of the Performance Monitor Window to bring up the Add Counters
window.
6.On the left side,choose which counters to add and click Add >>. Your counters should now appear under
Added Counters. Click OK.
There are many options for what counters to add. A few that may be of special note when dealing with
LabVIEW performance issues are:
Memory
Processor
Processor
Process (shown above): Under process, one can choose specific programs to monitor. In the upper left
Window, you can select the aspects of the process that you’d like to monitor such as % Processor Time or
Virtual Bytes. In the lower left hand window, you can select which process you’d like to monitor. Above,
LabVIEW has been selected.
Window, you can select the aspects of the process that you’d like to monitor such as % Processor Time or
Virtual Bytes. In the lower left hand window, you can select which process you’d like to monitor. Above,
LabVIEW has been selected.
Now you should be able to see all chosen counters updating on the graph
In order to log this data to file, right-click on Performance Monitor and select New»Data Collector Set.
Type in a name for your data set and press Next.
Complete the rest of the steps including choosing the location you want to save your log file.
When you want to start logging the performance data, right-click on your Data Collector Set and select Start.
To stop logging, right-click and select Stop.
Note: PerfMon provides ActiveX properties and methods, allowing you to control it through another ADE
and even use it as an embedded control in an application.
No comments:
Post a Comment