Using PerfMon to track process performance

Updated Dec 1, 2023

I need to track the performance of one or more processes. How can I track and record the system and process the information on a Windows operating system?

In addition to the built-in performance monitoring already offered by our product offering, there are also Windows system tools available to monitor almost all types of performance, including CPU, memory, file system, and network usage. You don't just have to trust the Task Manager.

There is a Windows utility called PerfMon (Performance Monitor) that has the ability to graph and record performance metrics for specific processes, as well as configure alarms and times for performance monitoring and recording.

Steps to view and record performance data with Windows 7 Performance Monitor:
  1. Make sure LabVIEW is open.
  2. Click the Start menu and click Run ....
  3. Type perfmon at the Run command prompt and click Ok .

  1. You will then see the Performance Monitor pop-up.

  1. Click the green '+' sign near the top of the Performance Monitor window to bring up the Add Counters window.
  2. On the left, choose which counters to add and click Add >> . Your counters should now appear under Added Counters. Click OK .

There are many options in Counters to Add. Some of the ones that may be of particular importance when it comes to LabVIEW performance problems are:
  • Memory
  • Processor
  • Process (shown above): During the process, one can choose specific programs to monitor. In the upper left window, you can select the aspects of the process that you want to monitor, such as % Processor Time or Virtual Bytes . In the lower left window, you can select which process you want to monitor. Above, LabVIEW has been selected.
  1. You should now be able to see the update of all the chosen counters on the chart.

  1. To record this data to a file, right-click on the Performance Monitor and select New ┬╗Data Collector Set .

  1. Enter a name for your dataset and press Next .

  1. Complete the rest of the steps, including choosing the location where you want to save your log file.
  2. When you want to start logging performance data, right-click on your set of data collectors and select Start . To stop the recording, 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 a built-in control in an application.