Intervals and State Machines

An Interval is used to measure or highlight the time between any two events that match the interval definition. By enabling or defining an Interval, you create a data set containing all sequences of events that match the definition. For instance, assuming a trace containing the user events On and Off, you can define an interval starting at On and ending at Off, and thereby see all On - Off sequences, independent of other events in between.

A State Machine is used to visualize any kind of state information logged in the trace. When defining a state machine, you specify the relevant events and how to extract the state information from these events. A simple example is, assuming a trace containing the user events On and Off, you can define a state machine MyFSM based on these events. Each occurrence of On and Off is then interpreted as the new state of MyFSM. A state machine contains multiple data sets, one for each state, where each data set contains all occurrences of its associated state. Tracealyzer also provides a predefined list of intervals and states for objects that Tracealyzer is aware of.

The Intervals and State Machines view (Views > Intervals and State Machines) allows for defining Intervals and State Machines, which allows for user-defined visualization of the recorded events in several views.

The view lists all Intervals and States Machines that have been activated. You can right-click an entry for the following options:

Intervals and States in the Vertical Trace

Intervals are shown in the vertical trace view by default, as soon as you create them. As shown on the left side of the above picture, the intervals appear as new columns, one for each interval or state, between the Actor columns and the event labels.

To add a predefined interval and state:

  1. Display the Intervals and State Machines view (Views > Intervals and State Machines).
  2. Click Add Predefined. The Predefined Intervals and States dialog appears.

  1. Choose a predefined state machine, and then click OK.

To add a custom state machine:

  1. Display the Intervals and State Machines view (Views > Intervals and State Machines).
  2. Click Add Custom State Machine. The New State Machine dialog appears.

You can create two types of state machines:

  1. Choose either Simple or Advanced, and then create the new state machine.

To add a custom interval:

  1. Display the Intervals and State Machines view (Views > Intervals and State Machines).
  2. Click Custom Intervals. The Custom Intervals dialog appears.

Specify a name for the interval, and then provide two rules for the beginning and end of the interval. The first interval will begin at the first event matching Interval Start, and finish at the first following event matching Interval End.

  1. Click Test to test the new interval. Click Save to save it.

 

Related Topics ABOUT TRACEALYZER:

rELATED tOPICS ABOUT MONITORING: