How to: Choose Sampling Events

A sample event is used to collect performance data at the specified interval. The following sample events are available:

  • Clock cycles - for CPU bound problems

  • Page faults - for memory related problems

  • System calls - for I/O related problems

  • Performance counter - for low-level performance problems

To select a sample event

  1. In Performance Explorer, right-click the performance session, and then click Properties.

  2. In the Property Pages, click the Sampling properties.

  3. From the Sample event drop-down list, select the sample event you want to use for profiling your application.

    Note

    The Available performance counters are enabled only if you select Performance counter from the Sample event drop-down list.

  4. If you select Performance counter, select a specific counter from the Available performance counters tree view control.

  5. When you select a sample event, a default sampling interval value is displayed in the Sampling interval text box. If necessary, you can enter the value that you want in the text box.

See Also

Tasks

How to: Choose Collection Methods

Concepts

CPU and Windows Counters in Profiling Tools

Understanding Sampling Data Values in Profiling Tools

Other Resources

Configuring Performance Sessions for Profiling Tools

Using the Profiling Tools From the Command-Line