In order to prepare an allocation call tree, you have to click on the
calculate toolbar button
or choose View->Calculate Allocation Call Tree from JProfiler's
main menu. If an allocation tree has already been calculated, the context sensitive
menu
also gives access to this action.
Before the allocation call tree is calculated, the allocation options dialog is shown. The class or package selection as well as the selected liveness mode are displayed at the top of the allocation call tree view.
The allocation call tree doesn't display all method calls in the JVM, it only displays
Runnable.run()
and the main method are always displayed, regardless of
the filter settings.
A particular node is a bridge node if it would normally not be displayed in the view, but has descendant nodes that have to be displayed. The icons of bridge nodes are grayed out. For the allocation call tree view this is the case if the current node has no allocations, but there are descendant nodes that have allocations.
To quickly expand larger portions
of the allocation call tree, select a method and choose
View->Expand Multiple Levels from the main window's menu or
choose the corresponding menu item from the context menu. A dialog is shown
where you can adjust the number of levels (20 by default) and the threshold in per
mille
of the parent node's value that determines which child nodes are expanded.
If you want to
collapse an opened part of the allocation call tree, select the
topmost method that should remain visible and choose
View->Collapse All from the main window's menu or
the context menu.
If a node is excluded, you will get options to add a profiled package, otherwise you will get options to add a compact or ignored filter. These actions are not available for classes in the "java." packages.