|
|
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: |
|
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.

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: |
|
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: |
|
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.
|
|