Class ParseInfo
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.atn.ParseInfo
This class provides access to specific and aggregate statistics gathered
during profiling of a parser.
- Since:
- 4.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets an array ofDecisionInfoinstances containing the profiling information gathered for each decision in the ATN.intGets the total number of DFA states stored in the DFA cache for all decisions in the ATN.intgetDFASize(int decision) Gets the total number of DFA states stored in the DFA cache for a particular decision.Gets the decision numbers for decisions that required one or more full-context predictions during parsing.longGets the total number of ATN lookahead operations for SLL and LL prediction across all decisions made during parsing.longGets the total number of ATN lookahead operations for LL prediction across all decisions made during parsing.longGets the total number of LL lookahead operations across all decisions made during parsing.longGets the total number of ATN lookahead operations for SLL prediction across all decisions made during parsing.longGets the total number of SLL lookahead operations across all decisions made during parsing.longGets the total time spent during prediction across all decisions made during parsing.
-
Field Details
-
atnSimulator
-
-
Constructor Details
-
ParseInfo
-
-
Method Details
-
getDecisionInfo
Gets an array ofDecisionInfoinstances containing the profiling information gathered for each decision in the ATN.- Returns:
- An array of
DecisionInfoinstances, indexed by decision number.
-
getLLDecisions
Gets the decision numbers for decisions that required one or more full-context predictions during parsing. These are decisions for whichDecisionInfo.LL_Fallbackis non-zero.- Returns:
- A list of decision numbers which required one or more full-context predictions during parsing.
-
getTotalTimeInPrediction
public long getTotalTimeInPrediction()Gets the total time spent during prediction across all decisions made during parsing. This value is the sum ofDecisionInfo.timeInPredictionfor all decisions. -
getTotalSLLLookaheadOps
public long getTotalSLLLookaheadOps()Gets the total number of SLL lookahead operations across all decisions made during parsing. This value is the sum ofDecisionInfo.SLL_TotalLookfor all decisions. -
getTotalLLLookaheadOps
public long getTotalLLLookaheadOps()Gets the total number of LL lookahead operations across all decisions made during parsing. This value is the sum ofDecisionInfo.LL_TotalLookfor all decisions. -
getTotalSLLATNLookaheadOps
public long getTotalSLLATNLookaheadOps()Gets the total number of ATN lookahead operations for SLL prediction across all decisions made during parsing. -
getTotalLLATNLookaheadOps
public long getTotalLLATNLookaheadOps()Gets the total number of ATN lookahead operations for LL prediction across all decisions made during parsing. -
getTotalATNLookaheadOps
public long getTotalATNLookaheadOps()Gets the total number of ATN lookahead operations for SLL and LL prediction across all decisions made during parsing.This value is the sum of
getTotalSLLATNLookaheadOps()andgetTotalLLATNLookaheadOps(). -
getDFASize
public int getDFASize()Gets the total number of DFA states stored in the DFA cache for all decisions in the ATN. -
getDFASize
public int getDFASize(int decision) Gets the total number of DFA states stored in the DFA cache for a particular decision.
-