Setting filtering options
TraceViewer provides various options for setting up filtering.
In some cases, it may also be necessary to use an external filter
application to modify the results. For instructions,
see Using an external filter application.
Basic options
You can create new filter rules in the basic Rules dialog, as for
other items. For instructions, see Setting up rules
and filters.
To set filtering-specific options:
- After the rules are defined, select one or more of them from the tree.
- Select either Hide or Show, to make the selected rules visible
on the tree.

- Select either the OR or AND operator:
- OR means that if a trace hits just one rule, it is applied.
- AND means that the trace must hit all the selected rules for it to be
applied.
- To take the selected rules to use, click Apply.
Creating rule statements
You can make also more complicated filtering rules by setting advanced options. The point
is to make an effective and reasonable filter rule set, which will then be
used when filtering traces.
A rule set is written the form of a statement such as this:
(rule AND rule2) OR (smallRule AND NOT filterRule)
where traces are included or excluded based on this criterion.
Tip: You can also type the rule set statement manually into
the text field.
To set advanced options:
- In the Filter Rules dialog, click Advanced.
The Advanced
Filter Rules dialog is displayed, showing the basic rules already created.
- To start creating a new rule set, click Start Set.
An opening
parenthesis ( is inserted into the text field to indicate the beginning.
- To edit the rule set, select rules from the tree and combine them with
each other by clicking any of the following buttons:
- AND: Indicates logical AND. Is used between two rules or rule sets
and means that both rules / sets will have to hit the rule for it to be true.
- OR: Indicates logical OR. Is used between two rules or rule sets
and means that either rule / set will have to hit the rule for it to be true.
- NOT: Indicates logical NOT. Is used before a rule or rule set.
Indicates that the rule / rule set after the NOT can not hit the rule for
it to be true.
The Back button removes the last word from the text field,
starting from the caret position.
- (Optional) To quickly add all the rules from a group to the set, click
the group name on the tree.
From the pop-up, select OR or AND. After choosing,
all the rules from this group are added to the text field, separated by the
selected logical operation.

- Click End Set to insert a closing parenthesis ) into the field.
Note: TraceViewer automatically checks that the rule is reasonable and
well-formed, that is, contains as many start brackets as end brackets. The
following is an example of a reasonable filter rule set that is correct and
ready to be applied:

- (Optional) To hide or show a trace that hits this filter rule, change
the value of Show and Hide selection as needed.
- Click OK to save the rule set.
- To clear the rule text field and start creating a new one, click Clear
.
- To return to the Basic dialog, click Simple.
Related tasks