ParseInfo

This class provides access to specific and aggregate statistics gathered during profiling of a parser.

Constructors

this
this(ProfilingATNSimulator atnSimulator)
Undocumented in source.

Members

Functions

getDFASize
int getDFASize()

Gets the total number of DFA states stored in the DFA cache for all decisions in the ATN.

getDFASize
int getDFASize(int decision)

Gets the total number of DFA states stored in the DFA cache for a particular decision.

getDecisionInfo
DecisionInfo[] getDecisionInfo()

Gets an array of {@link DecisionInfo} instances containing the profiling information gathered for each decision in the ATN.

getLLDecisions
int[] getLLDecisions()

Gets the decision numbers for decisions that required one or more full-context predictions during parsing. These are decisions for which {@link DecisionInfo#LL_Fallback} is non-zero.

getTotalATNLookaheadOps
long getTotalATNLookaheadOps()

Gets the total number of ATN lookahead operations for SLL and LL prediction across all decisions made during parsing.

getTotalLLATNLookaheadOps
long getTotalLLATNLookaheadOps()

Gets the total number of ATN lookahead operations for LL prediction across all decisions made during parsing.

getTotalLLLookaheadOps
long getTotalLLLookaheadOps()

Gets the total number of LL lookahead operations across all decisions made during parsing. This value is the sum of {@link DecisionInfo#LL_TotalLook} for all decisions.

getTotalSLLATNLookaheadOps
long getTotalSLLATNLookaheadOps()

Gets the total number of ATN lookahead operations for SLL prediction across all decisions made during parsing.

getTotalSLLLookaheadOps
long getTotalSLLLookaheadOps()

Gets the total number of SLL lookahead operations across all decisions made during parsing. This value is the sum of {@link DecisionInfo#SLL_TotalLook} for all decisions.

getTotalTimeInPrediction
long getTotalTimeInPrediction()

Gets the total time spent during prediction across all decisions made during parsing. This value is the sum of {@link DecisionInfo#timeInPrediction} for all decisions.

Variables

atnSimulator
ProfilingATNSimulator atnSimulator;
Undocumented in source.

Meta