Taking a Snapshot

See Also

You can use a to capture profiling data at a specific point in time. The data captured in a snapshot depends on the type of profiling session in progress when the snapshot is taken.

A snapshot differs from live profiling results in the following ways:

Taking Snapshots

You can only take a snapshot while a profiling session is in progress. You can take a snapshot manually or set a profiling point to take a snapshot automatically at a precise point in your application. When you use a profiling point to take a snapshot, you locate the point in your source code where you want to take a snapshot. For example, you may want to take a snapshot when a thread enters a specific method.

To take a snapshot manually

  1. Start a profiling session
  2. Do one of the following:

When you take a snapshot, the snapshot opens in the main editor window. You can then save the snapshot to your project.

To take a snapshot using a profiling point

  1. Open the source file containing the code where you want to place the profiling point.
  2. Right-click in the line of code and choose Insert Profiling Point.
  3. Select one of the snapshot options in the New Profiling Point wizard and click Next.
  4. Modify any of the profiling point properties in the Customize Properties page of the wizard. Click Finish.

If you use a profiling point to take a snapshot, you can choose from the following snapshot options:

For each snapshot option you can choose to save the snapshot to your project or you can specify a location.

Saving Snapshots

You can save a snapshot to your project or you can save the snapshot to a location on your local file system. When you save a snapshot to your project, the snapshot is listed under Saved Snapshots in the Profiler window. You can save a snapshot by clicking the Save to Project button in the snapshot toolbar. Alternatively, you can use the Options window to configure the IDE behaviour when taking a snapshot.

See Also
Selecting a Profiling Task
Setting Profiling Points
Exploring Snapshots
Working with Live Profiling Results

Legal Notices