Rule Builder > Debugging and Profiling > Testing the Business Rules > Profiler

The Profiler panels provide statistics on business objects and rules involved in the execution of a ruleset. The Profiler evaluates the run-time performance of a ruleset, enabling the visualization of ruleset executions, and providing summary statistics about all the rules placed in the agenda during a debugging session. After the execution of a ruleset, the Rule Profiler tab displays the number of times that each rule was instantiated, how often it fired, and the total and average time that was spent executing it.

The Profiler panels become active automatically when you start testing the execution of your rules. To open the Profiler, start the execution and choose an item of the Profiler Panels submenu in the View menu. The Profiler has two panels (Rule Profiler and Object Profiler). The panels are displayed at the bottom of the Rule Builder window.

In the right-hand panel, the Flow tab visually graphs the flow of executed rules (as indicated by arrows). The number next to the arrow is the number of times a given business rule caused another one to fire. In Figure 16.11, the business rule DropDesiredObject has caused DropObject to fire three times. If the rule had been fired fewer times than it had been instantiated, the label of the link would consist of the number of times the rule had been fired followed by a hyphen and the number of times it had been instantiated. In such a case, this means that the conditions that made the rule eligible have changed before it could be fired. The lower right panel displays which rules have retracted the selected rule.

The Profiler Objects and Objects tab are two alternate displays of object level information. Here, the objects each rule has added, retracted, or updated are listed. Also, this view provides the number of times these actions have occurred for each class. The Source tab displays the source code of the selected rule.

An example of the Profiler panels, showing the summary statistics and graphical display of rule instantiations and firings in the left and right panel respectively, is given in Figure 16.11.

images/profilerRulesFlow.png

Figure 16.11    Profiler Panels

See Also

Profiling | Profiler Panels | Profiler Toolbar and Menu


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT