New Profiling Point Wizard: Stopwatch
See Also
The New Profiling Point wizard enables you to set a new profiling point
that will invoke a profiling action.
In this wizard you specify the type of profiling point that you want to set
according to the profiling action that want to be invoked.
You use this profiling point to obtain a timestamp
each time that the profiling point is hit.
You can obtain the length of time between two locations by selecting
Timestamp and Duration and setting a start and a stop profiling point.
You open this wizard in the following ways.
- Right-click in a line in your source code and choose Profiling > Insert Profiling Point.
- Click Add Profiling Point in the toolbar of the Profiling Points window.
- Click Edit Profiling Point in the toolbar of the Profiling Points window
when a Stopwatch profiling point is selected.
In this page of the wizard you specify the following properties.
- Name. Type the name that you want to use to identify
the profiling point.
This name will be used to identify the profiling point in the
Profiling Points window.
- Settings. Select one of the following settings:
- Timestamp. Select this option if you want to retrieve
a timestamp when the profiling point is hit.
- Timestamp and Duration. Select this option to find the length of time
between two paired timestamps.
If you select this option you will need to specify the location for
a starting point for the stopwatch and the location for the stopping point.
- Location. Specify the name of the file and
the line in the source code where you want to place the profiling point.
You can click Browse to locate the file in your project.
Select Begin or End to specify if the profiling point is hit when
a thread hits the beginning of the line or reaches the end of the line.
- If you opened the New Profiling Point wizard by clicking
in a line in a source file, the file and line are automatically set for you
but you can modify the settings as needed.
- See Also
- Setting Profiling Points
- Taking a Snapshot
- Analyzing Application Performance
- Analyzing Application Memory Usage
Legal Notices