Duration (Pacific Standard Time):
To (Pacific Standard Time):
  • None
User Action:
  • None
Visual Studio Team System

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.


    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.