Allocation monitor view |
|
|
The allocation monitor view shows a top-down call tree cumulated for all
threads and filtered according to the
active filter sets which
is similar to the one shown in the
invocation view in JProfiler's
CPU section except that it shows allocations
of class instances and arrays instead of time measurements.
The entries in the allocation tree have different meanings which are indicated by the displayed icons:
|
| Only recorded objects will be displayed in this view. See the memory section overview for further details on allocation recording. |
|
By default, the allocation monitor displays allocations of all classes and array types.
The allocation monitor can display allocations for a selected class, package or array type if
class resolved allocations are enabled in the "Allocation monitor" section on the
features tab of the
profiling settings dialog.
The header above the tree view shows the current selection, the [Change selection] button brings up the package selection dialog. If class-resolved allocations are not enabled, a corresponding message is displayed instead of the package selection dialog. Note that you can still get class-resolved allocations in the heap walker unless the allocation monitor has been completely disabled. The [Show all] button clears the selection and reverts the allocation monitor to its default state of showing all allocations. |
|
The allocation monitor can filter objects according to their liveness status:
If the garbage collected objects are shown, you can reset the accumulated data
by clicking on the |
|
The Edit->Take heap snapshot for selection menu item and the
corresponding
toolbar entry take a new snapshot, switch to the
heap walker view and create an object set with
the currently selected class and allocation spot.
|
| You can stop and restart allocation recording to clear the allocation monitor and freeze all views to ensure that the allocation monitor remains static. |