Class RuleAppplicationStatistics
java.lang.Object
fr.inria.rules.integraal.forward_chaining.chase.rule_applier.RuleAppplicationStatistics
Collects timing statistics for rule-application steps.
-
Field Summary
FieldsModifier and TypeFieldDescriptionList<Map<org.apache.commons.math3.util.Pair<FORule, Substitution>, Long>> Timings for trigger application.List<Map<org.apache.commons.math3.util.Pair<FORule, Substitution>, Long>> Timings for trigger checking.Timings for computing substitutions for each body query.intIndex of the current statistics entry.List<org.apache.commons.math3.util.Pair<Collection<FORule>, Long>> Timings for grouped rules sharing a body query. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty rule-application statistics collector. -
Method Summary
Modifier and TypeMethodDescriptionprettyPrintAtIndex(int n) Returns a pretty printed string of the statistics at the given index position.
-
Field Details
-
counter
public int counterIndex of the current statistics entry. -
groupRulesByBodyQueries
Timings for grouped rules sharing a body query. -
computeSubstitutionsForRule
-
checkTrigger
Timings for trigger checking. -
applyTrigger
Timings for trigger application.
-
-
Constructor Details
-
RuleAppplicationStatistics
public RuleAppplicationStatistics()Creates an empty rule-application statistics collector.
-
-
Method Details
-
prettyPrintAtIndex
Returns a pretty printed string of the statistics at the given index position. For each list, the element at position n is considered. If the list is empty or does not have an element at that position, a corresponding message is shown.- Parameters:
n- the position to consider from each list- Returns:
- a formatted string for the statistics at index n
-