Profiler - Memory Snapshot

Home > Profiling Results

Memory Snapshot

The Memory Snapshot captures data on object allocation and liveness. when profiling memory usage from the Analyze Memory Usage task or Memory Profiling in the Custom Profile. The Memory Snapshot is displayed in the Source Editor when you click Take Snapshot in the Profiler window or when you click Take Snapshot of Profiling Results in the toolbar of the Profiling Results tab.

The Memory snapshot contains the following tabs:

  • Memory Results

    This tab displays a list of classes (including array classes), with the total size and number of instances allocated as of the time you took the snapshot. In this tab, you can right-click any class and select Show Allocation Stack Traces. The stack traces for the selected class are displayed in the Allocation Stack Traces tab.

  • Allocation Stack Traces

    This tab displays a reverse call graph with all call paths leading to object allocations for the given class.

  • Info

    The Info tab displays data on when the snapshot was taken, where it is saved, and the profile settings used.

Memory Results Snapshot

Memory Results Snapshot

Snapshot toolbar

The controls in the snapshot toolbar enable you to control the coarseness of the view of the results and to save the snapshot files.

  • Save Snapshot to Project

    Click this button to save the snapshot to your project. The snapshot is saved to the profiler directory in nbproject > private directory in your project. Once saved, the snapshot files are visible in the Snapshots section of the Profiler window.

  • Save Snapshot to Custom File

    Click this button to open a save dialog box to save the snapshot file in a location other than to your project.

Working inside the results

You can right-click any profiling result to access the following command:

  • Go To Source.

    For the current method, Profiler loads the source .java file and scrolls to this method's location in the code.

See also


Project Features

About this Project

Profiler was started in November 2009, is owned by Tomas Hurka, and has 62 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm