The outgoing references view shows instances in the current object set. Each instance can be opened to show
outgoing references as well as primitive data.
The table only concerns the top-level instances and shows the following sortable columns:
The number of top-level objects that are shown is limited to 100 by default. You can add more objects with the hyperlink after the last row in the table. The default number of objects can be adjusted in the view settings. |
Each reference node consists of three parts:
Each object is optionally annotated with an object ID. With this ID, you can check whether two objects are the same or not. The display of IDs can be switched off the the context menu and the view settings. |
The [Apply filter ...] menu at the top of the view allows you to filter the current object set.
Filters are always applied to the top-level objects, i.e. the objects that are actually part of the current object set.
When you open outgoing references and select a reference or a primitive value, the filter uses the selected node as the criterion. Top-level objects that do not have a path of outgoing references such as the selected path, are discarded by the filter.
If a non-primitive value is selected, and you are profiling in live mode, you can
apply a filter with a code snippet. In the script, you can use the If you have selected a top-level object, the parameter is only typed if all objects in the current object set have the same class. Also, in that case the result is equivalent to running the custom filter inspection on the current object set. Alternatively, you can apply a filter by restricting the selected value. For primitive values, you can restrict the value by settings bounds or testing for equality. For object references, there are 3 different restrictions:
|
To analyze both incoming and outgoing references and to explore the relationship between objects of interest, use the [Show in graph] button at the top of the view. The selected instances will be then be added to the graph. The graph is not cleared when you choose a new object set or go back in the history, so you can add objects from different object sets to the graph. |
If you're profiling in live mode, the
[Show toString() values] button
at the top of the view is active. When you click it, JProfiler invokes toString() on all expanded
references in the view and shows the results. If you open more references or add more references with the
hyperlink at the bottom of the table, those objects will not have their toString() values
displayed. You will have to click the button again in order to show the missing values.
The reason why this operation is not performed automatically is that calculating toString() values is an expensive operation that invokes Java code in the profiled JVM and may even have unwanted side effects in buggy implementations. |
To add a selection step from this view you can select one or multiple objects and click the
[Use ...] button above the graph and choose in the popup menu. Multiple objects are selected by
keeping the SHIFT or CTRL keys pressed during selection. The following selection modes are available:
After your selection, the view helper dialog will assist you in choosing the appropriate view for the new object set. |