public class ParseInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected ProfilingATNSimulator |
atnSimulator |
Constructor and Description |
---|
ParseInfo(ProfilingATNSimulator atnSimulator) |
Modifier and Type | Method and Description |
---|---|
DecisionInfo[] |
getDecisionInfo()
Gets an array of
DecisionInfo instances containing the profiling
information gathered for each decision in the ATN. |
int |
getDFASize()
Gets the total number of DFA states stored in the DFA cache for all
decisions in the ATN.
|
int |
getDFASize(int decision)
Gets the total number of DFA states stored in the DFA cache for a
particular decision.
|
List<Integer> |
getLLDecisions()
Gets the decision numbers for decisions that required one or more
full-context predictions during parsing.
|
long |
getTotalATNLookaheadOps()
Gets the total number of ATN lookahead operations for SLL and LL
prediction across all decisions made during parsing.
|
long |
getTotalLLATNLookaheadOps()
Gets the total number of ATN lookahead operations for LL prediction
across all decisions made during parsing.
|
long |
getTotalLLLookaheadOps()
Gets the total number of LL lookahead operations across all decisions
made during parsing.
|
long |
getTotalSLLATNLookaheadOps()
Gets the total number of ATN lookahead operations for SLL prediction
across all decisions made during parsing.
|
long |
getTotalSLLLookaheadOps()
Gets the total number of SLL lookahead operations across all decisions
made during parsing.
|
long |
getTotalTimeInPrediction()
Gets the total time spent during prediction across all decisions made
during parsing.
|
protected final ProfilingATNSimulator atnSimulator
public ParseInfo(ProfilingATNSimulator atnSimulator)
public DecisionInfo[] getDecisionInfo()
DecisionInfo
instances containing the profiling
information gathered for each decision in the ATN.DecisionInfo
instances, indexed by decision
number.public List<Integer> getLLDecisions()
DecisionInfo.LL_Fallback
is non-zero.public long getTotalTimeInPrediction()
DecisionInfo.timeInPrediction
for all decisions.public long getTotalSLLLookaheadOps()
DecisionInfo.SLL_TotalLook
for all decisions.public long getTotalLLLookaheadOps()
DecisionInfo.LL_TotalLook
for all decisions.public long getTotalSLLATNLookaheadOps()
public long getTotalLLATNLookaheadOps()
public long getTotalATNLookaheadOps()
This value is the sum of getTotalSLLATNLookaheadOps()
and
getTotalLLATNLookaheadOps()
.
public int getDFASize()
public int getDFASize(int decision)
Copyright © 1992–2018 ANTLR. All rights reserved.