|
|
This section takes you through two views showing numeric summaries: the Table View and the Call Tree View . The Table view shows summaries of execution attributes in tabular form. The Call Tree view summarizes the cumulative time contributions along calling paths from or to a set of method invocations. This section also shows how you can select items in one view and navigate to see more detailed information in another view. We'll first examine a table of methods, then "drill down" to see a table of the individual invocations of one method, and then look at a call tree of one of those invocations.
| To start Jinsight with the TwoThreadsTest trace: |
|
We'll load the trace through to the end before viewing it.
| To load the trace: |
|
A Method Table View appears. Each line of the table represents all the occurrences of the method listed. The columns show attributes of each method in the trace, including the method name, the class name, and the cumulative time spent in the method.

To see which methods spent the most cumulative time, sort the table by that attribute.
| To sort the table: |
|
The Method Table above summarizes all of the occurrences of each method. In
the next example we use an Invocation Table view to investigate a particular
method more closely, and show each of the occurrences of that method.
| To bring up a table of all invocations of a particular method: |
|

A new table view appears, this time an Invocation Table View of all 22 of
the calls to the println(String) method in class java/io/PrintStream. The numeric
data in this (or any) table can also be displayed in bar format.
| To sort tabular data and display it in bar format: |
|

The topmost row in the Invocation Table View above shows that the first invocation
of println(String) is much more expensive than the others. We can learn
more about that particular invocation by displaying a Call
Tree View for that invocation. The Call Tree view will summarize in an outline
format the cumulative time contributions of the various calls made from that
particular println(String) invocation.
| To show a Call Tree for a particular method invocation: |
|

A new view appears, this time a Call Tree View showing the outline of calls made by this
particular invocation of println(String).
The time contributions of each call from println(String) are shown.
| To expand the call tree for any particular call: |
|

The calls are colored according to the class to which the method belongs. The time contributions of each call from println(String) are shown in numeric and percentage terms. The percentages shown are all measured in terms of the "root" of the call tree, i.e. relative to the println(String) call. Alternatively, the percentages can be measured relative to the next higher node on the tree.
With the Tree menu bar item, you can experiment with manipulating the display by tree depth, and by tree node grouping and sort order. The tree can even be "inverted" to show the time contributions of callers to println(String).
|
|