Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
25 ratings:
 3.83 out of 5   

Using PerfMon to Track Process Performance



Primary Software: LabVIEW Development Systems>>LabVIEW Full Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

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

Solution:
Besides the built-in performance tracking our products offer already, there are also 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:

(For Windows XP instructions, see attached document)

  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.
  6. 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 for what counters to add. A few that may be of special note when dealing with LabVIEW performance issues are:
    • Memory
    • 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.
  7. Now you should be able to see all chosen counters updating on the graph
  8. In order to log this data to file, right-click on Performance Monitor and select New»Data Collector Set.

  9. Type in a name for your data set and press Next.

  10. Complete the rest of the steps including choosing the location you want to save your log file.
  11. 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.



Related Links:
LabVIEW 2013 Help: Using the Profile Performance and Memory Window

Attachments:
Steps to Setup Performance Manager.docx




Report Date: 10/12/2004
Last Updated: 02/27/2017
Document ID: 3EB6EU4Y

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit