## Analyzing Application Memory Usage

See Also

The Analyze Memory Usage task gives you data on objects that have been allocated in the target application. When you analyze memory usage, you can use the default configuration settings or create a custom configuration for the task.

To analyze memory usage:

1. Choose Profile > Profile Main Project from the main menu.
2. Click Memory in the left pane of the Select Profiling Task window to expand the button.
   You can use the default configuration, create a new custom configuration or use an existing custom configuration.
3. Select one of the following profiling options:
   - Record object creation only
   - Record both object creation and garbage collection
4. Select Record Stack Traces (optional).
5. Click Run.

When you click Run, the target application launches and the profiling session starts.

### Custom Configurations

When you create a custom configuration you have complete control over all of the available internal settings for that profiling task. You can create, store, and assign names to separate sets of custom profiling settings. The custom configuration is associated with a specific project and is listed in the Select Profiling Task window when you profile the project. You can modify the custom configurations in the Select Profiling Task dialog box. Custom configurations are automatically saved between IDE work sessions so that they can be reused and modified.

To create a custom configuration:

1. Choose Profile > Profile Main Project from the main menu.
2. Click Memory in the left pane of the Select Task window to expand the button.
3. Click Create Custom.
4. Type a name for the configuration.
5. Select the initial settings for the configuration and click OK. You then modify the initial settings when you customize the configuration.
6. Select one of the following profiling options:
   - Record object creation only
   - Record both object creation and garbage collection
7. Select Record Stack Traces (optional).
8. Click Advanced Settings and modify any of the advanced settings.
9. Click Run.

When you click Run, the target application launches and the profiling task starts.

See Also
  Analyze Memory: Basic Options
  Analyze Memory: Advanced Options
  Selecting a Profiling Task
  Setting Profiling Points
  About Profiling Results

Legal Notices