# Memory Snapshot

Use to capture data on live objects, object allocation and liveness. The data captured in the snapshot depends upon the options that were selected for the profiling session. You can take a memory snapshot when you are analyzing memory usage. The snapshot is displayed in the main editor window.

Element | Description
--- | ---
Memory Results | Displays a list of classes (including array classes), with the total size and number of instances allocated at the time you took the snapshot. If Record Stack Trace for Allocations was selected as a profiling option, you can display the stack traces for a specific class by right-clicking the name of the class and selecting Show Allocation Stack Traces. The stack traces are displayed in the Allocation Stack Traces tab.
Info | Displays data on when the snapshot was taken, where it is saved, and the configuration of the profiling session.
Allocation Stack Traces | Displays a reverse call graph with all call paths leading to object allocations for the given class. This tab is only available if Record Stack Trace for Allocations was selected as a profiling option.

Right-click any class in the Memory Results tab or the Allocation Stack Traces tab and select Go To Source to load the source `.java` file of a class.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.