Using the PDH Functions to Consume Counter Data

You use the PDH functions to collect performance data. The PDH functions are easier to use than the registry functions, oriented more towards operations on single counters rather than groups of counters, and can be used to access counter data from current activity or log files.

To collect performance data using the PDH functions, perform the following steps.

  1. Create a query
  2. Add counters to the query
  3. Collect the performance data
  4. Display the performance data
  5. Close the query

You can collect performance data from either real-time sources or log files. You can display the collected data or write the data to log files. For more information on how to write performance data to log files, see Working with Log Files.

For additional information, see

 

 

Community Additions

ADD
Show:
© 2014 Microsoft