Jinsight Guided Tour
Execution View
 Execution Pattern View

The Execution Pattern view helps you find and compare recurring patterns of execution.  The view summarizes all invocations of a selected method, highlighting the differences among them.

Continuing with Hang.trc, and with println still selected, open an Execution Pattern view.
 

To open an Execution Pattern view:
  • Choose Workspace Window => Views => Execution Pattern.

What you see is a summary of all the println occurrences in the trace. It reveals that all println messages produce the same pattern of execution except for one area of divergence.

Fly the mouse cursor over the bright blue stripe, and you'll see it identified in the status line (bottom of the view) as a call to java/io/Writer.write. "cum time" in the status line refers to the cumulative time expended in this method across all similar invocations of write, 1678 time units in this case. "1X" indicates that this particular call—producing this particular pattern of subsequent calls—occurred just once in the entire execution.

Just to the left of the bright blue stripe you'll see a 1/2 in a beveled frame. That indicates there are two variant execution patterns at this point, and that pattern 1 is depicted currently.  Notice that the stripe is only partially filled.  The unfilled part corresponds to the time consumed by variants other than the current one. (The most expensive pattern always appears first.)
 

To see the second variant:
  • Left-click on 1/2.

You can tell this is a simpler variant, and it also takes much less time overall, as you'll see by moving the cursor over the (now smaller) bright blue area. The "3X" in the status line indicates that this pattern occurs three times in the execution.

Another click will reveal the last variant.
 

To see the last variant:
  • Left-click on 2/2.

The bright blue stripe now appears beveled and is fully filled.  In this state it shows the total time consumed by all patterns. Fly over it to see the precise amount of time and total number of occurrences. Pressing the variant button again returns it to the 1/2 state.


Execution View
Jinsight Home