Rule Builder > Debugging and Profiling > Profiling > Profiling Rules |
Profiling Rules |
PREVIOUS NEXT |
The Rule Profiler panel is composed of two panes. The left pane displays a list of the rules that have been added to the agenda so far. For each rule it provides the following information:
You can sort the rules shown in the left pane according to the column properties. Right-click in the header of the column and click either Sort Ascending or Sort Descending on the shortcut menu.
Note that there may be a rule named <code>
in the list. This is not a rule from the ruleset, but is a placeholder for all events that occur outside of rules. This includes events that occur during functions setup and any additional actions under direct application program control.
If you select a rule from the list in the left pane, three tabs are displayed in the right pane: Flow, Objects, and Source.
The Flow panel contains a graph showing the antecedents and consequents of the rules. Click a rule in this graph to select it or double-click it to show all the antecedents and consequents of the rule. A double-click is equivalent to selecting a rule in the Rule Profiler panel.
The links in the graph are labelled by an integer showing how many times the consequent rule has been instantiated by the antecedent. If the rule has been fired fewer times than it has been instantiated, the label of the link consists of the number of times the rule has been fired followed by a hyphen and the number of times it has been instantiated. In such a case the rule has been retracted by some other rule. The Flow panel displays which rules have retracted the selected rule in its lower part.
The lower part of the Flow panel also appears when the selected rule has retracted other rules from the agenda. You may need to open this part of the panel using the slider or the two small buttons situated at the top-left of the panel. It then displays the retracted rules. You can also select a rule in this lower part by double-clicking it. An example of the Rule Profiler and Flow panels is shown in Figure 16.29.
The Objects panel displays the classes of objects that have been added, updated, or retracted by the selected rule, with the number of occurrences of these events. An example is shown in Figure 16.30.
When you double-click an object class name, the focus switches to the Object Profiler panel with the selected class displayed.
The Source panel displays the source code of the selected rule. An example is shown in Figure 16.31.
Profiling Objects | Inspecting the Agenda
Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |