## Setting Profiling Points

See Also

A profiling point is a marker in your source code which can invoke specific profiler actions. You set a profiling point in your code by using the popup menu in the Source Editor or by using the toolbar in the Profiling Points window.

You can set the following types of profiling points:

- Reset Results
- Stopwatch
- Take Snapshot
- Load Generator
- Timed Take Snapshot
- Triggered Take Snapshot

Once you set a profiling point it becomes part of the project until you delete it. In the Profiling Points window you can view, modify and delete the Profiling Points in your projects.

To set a profiling point:

1. Locate the class where you want to add the profiling point and open the class in the Source Editor.
2. In the Source Editor, right-click in the line where you want to add the profiling point and choose Profiling > Insert Profiling Point to open the New Profiling Point wizard.
3. Select a profiling point type and the project. Click Next.
4. Customize the properties of the profiling point, if necessary. Click Finish.

When you click Finish, an icon representing the profiling point type appears in the sidebar of the Source Editor next to the line where you inserted the profiling point.

To enable and disable a profiling point:

1. Locate the class containing the profiling point and open the class in the Source Editor.
2. In the Source Editor, right-click in the left margin of the line containing the profiling point and choose Profiling > Disable or Enable.

Alternately, you can enable and disable profiling points in the Profiling Points window. The Profiling Points window displays all profiling points in open projects. You can select a profiling point and then use the toolbar to edit, remove, enable and disable the profiling point.

See Also
  Analyzing Application Performance
  Analyzing Memory Performance
  Taking Snapshots

Legal Notices