# Memory Snapshot Comparison

Use to display a comparison of two memory snapshots.

Sampling Comparison

If the Quick (Sampled) option was selected for the profiling session, the comparison provides details on the difference between the number of live objects in the two snapshots.

Element | Description
--- | ---
Class Name - Live Objects | Displays the name of the class or live object.
Live Bytes [%] | Provides a graphic display of the relative amount of memory currently occupied by the live object.
Live Bytes | Displays the memory size in bytes that is currently occupied by the live object.
Live Objects | Displays the exact difference between the number of live objects in the two snapshots.

Allocations Comparison

If Record object creation was selected for the profiling session, the comparison provides details on the total number of instances.

Element | Description
--- | ---
Class Name - Allocated Objects | Displays the name of the class or allocated object.
Bytes Allocated [%] | Provides a graphic display of the relative amount of memory occupied by instances of the class.
Bytes Allocated | Displays the memory size in bytes occupied by the instances of the class.
Objects Allocated | Displays the number of all instances of the class.

Liveness Comparison

If Record both object creation and garbage collection was selected for the profiling session, the comparison provides more detailed data on live instances.

Element | Description
--- | ---
Class Name - Allocated Objects | Displays the name of the class or allocated object.
Live Bytes [%] | Provides a graphic display of the relative amount of memory occupied by live instances of the class.
Live Bytes | Displays the memory size in bytes that is currently occupied by the live instances of the class.
Live Objects | Displays the number of current live instances of the class.
Allocated Objects | Displays the number of all instances of the class created since the application was started or since the results were last reset.
Average Age | Displays the average age in generations of live instances of the class.
Generations | Displays the number of different generations (garbage collections survived) of live instances of the class.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

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