Setting Profiling Points

See Also

A profiling point is a marker in your source code which can invoke specific profiling 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:

You can use a profiling point to reset profiling results, take a snapshot or record the timestamp or execution time of a code fragment.

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

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.

To view active profiling point:

You can see the profiling points that are enabled for a specific profiling session in the Select Profiling Task dialog box.

  1. Right-click the project node and choose Profile to open the Select Profiling Task dialog box.
  2. Select the profiling task (CPU or Memory).
  3. Click Show active Profiling Points.

When you click Show active Profiling Points a dialog box opens that lists all the profiling points that are set in the project. Profiling points that are set but disabled are greyed out. If you want to enable, disable or customize the settings of a profiling point, open the Profiling Points window by choosing Window > Profiling > Profiling Points.

See Also
Analyzing Application Performance
Analyzing Memory Performance
Taking Snapshots

Legal Notices