C# Class Antlr.Runtime.Debug.Profiler

Using the debug event interface, track what is happening in the parser and record statistics about the runtime.
Inheritance: Antlr.Runtime.Debug.BlankDebugEventListener
Afficher le fichier Open project: antlr/antlrcs

Méthodes publiques

Свойство Type Description
DataSeparator string
NewLine string
RuntimeStatsFilename string
Version string
parser Antlr.Runtime.Debug.DebugParser

Protected Properties

Свойство Type Description
backtrackDepth int
currentGrammarFileName Stack
currentLine Stack
currentPos Stack
currentRuleName Stack
decisionStack Stack
decisions DoubleKeyMap
lastRealTokenTouchedInDecision IToken
uniqueRules bool>.Dictionary

Méthodes publiques

Méthode Description
BeginBacktrack ( int level ) : void
ConsumeHiddenToken ( IToken token ) : void
ConsumeToken ( IToken token ) : void
EndBacktrack ( int level, bool successful ) : void
EnterDecision ( int decisionNumber, bool couldBacktrack ) : void
EnterRule ( string grammarFileName, string ruleName ) : void
ExamineRuleMemoization ( IIntStream input, int ruleIndex, int stopIndex, string ruleName ) : void
ExitDecision ( int decisionNumber ) : void
ExitRule ( string grammarFileName, string ruleName ) : void
GetDecisionStats ( ) : DoubleKeyMap
GetDecisionStatsDump ( ) : string
GetNumberOfHiddenTokens ( int i, int j ) : int
GetReport ( ) : ProfileStats
LT ( int i, IToken t ) : void
Location ( int line, int pos ) : void
Mark ( int i ) : void
Memoize ( IIntStream input, int ruleIndex, int ruleStartIndex, string ruleName ) : void
Profiler ( ) : System.Collections.Generic
Profiler ( Antlr.Runtime.Debug.DebugParser parser ) : System.Collections.Generic
RecognitionException ( RecognitionException e ) : void
Rewind ( ) : void
Rewind ( int i ) : void
SemanticPredicate ( bool result, string predicate ) : void
SetParser ( Antlr.Runtime.Debug.DebugParser parser ) : void
Terminate ( ) : void
ToNotifyString ( ) : string
ToString ( ) : string
ToString ( ProfileStats stats ) : string

Méthodes protégées

Méthode Description
CurrentDecision ( ) : DecisionEvent
LocationDescription ( ) : string
LocationDescription ( string file, string rule, int line, int pos ) : string
Trim ( int X, int n ) : int[]

Method Details

BeginBacktrack() public méthode

public BeginBacktrack ( int level ) : void
level int
Résultat void

ConsumeHiddenToken() public méthode

public ConsumeHiddenToken ( IToken token ) : void
token IToken
Résultat void

ConsumeToken() public méthode

public ConsumeToken ( IToken token ) : void
token IToken
Résultat void

CurrentDecision() protected méthode

protected CurrentDecision ( ) : DecisionEvent
Résultat DecisionEvent

EndBacktrack() public méthode

public EndBacktrack ( int level, bool successful ) : void
level int
successful bool
Résultat void

EnterDecision() public méthode

public EnterDecision ( int decisionNumber, bool couldBacktrack ) : void
decisionNumber int
couldBacktrack bool
Résultat void

EnterRule() public méthode

public EnterRule ( string grammarFileName, string ruleName ) : void
grammarFileName string
ruleName string
Résultat void

ExamineRuleMemoization() public méthode

public ExamineRuleMemoization ( IIntStream input, int ruleIndex, int stopIndex, string ruleName ) : void
input IIntStream
ruleIndex int
stopIndex int
ruleName string
Résultat void

ExitDecision() public méthode

public ExitDecision ( int decisionNumber ) : void
decisionNumber int
Résultat void

ExitRule() public méthode

public ExitRule ( string grammarFileName, string ruleName ) : void
grammarFileName string
ruleName string
Résultat void

GetDecisionStats() public méthode

public GetDecisionStats ( ) : DoubleKeyMap
Résultat DoubleKeyMap

GetDecisionStatsDump() public méthode

public GetDecisionStatsDump ( ) : string
Résultat string

GetNumberOfHiddenTokens() public méthode

public GetNumberOfHiddenTokens ( int i, int j ) : int
i int
j int
Résultat int

GetReport() public méthode

public GetReport ( ) : ProfileStats
Résultat ProfileStats

LT() public méthode

public LT ( int i, IToken t ) : void
i int
t IToken
Résultat void

Location() public méthode

public Location ( int line, int pos ) : void
line int
pos int
Résultat void

LocationDescription() protected méthode

protected LocationDescription ( ) : string
Résultat string

LocationDescription() protected méthode

protected LocationDescription ( string file, string rule, int line, int pos ) : string
file string
rule string
line int
pos int
Résultat string

Mark() public méthode

public Mark ( int i ) : void
i int
Résultat void

Memoize() public méthode

public Memoize ( IIntStream input, int ruleIndex, int ruleStartIndex, string ruleName ) : void
input IIntStream
ruleIndex int
ruleStartIndex int
ruleName string
Résultat void

Profiler() public méthode

public Profiler ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Profiler() public méthode

public Profiler ( Antlr.Runtime.Debug.DebugParser parser ) : System.Collections.Generic
parser Antlr.Runtime.Debug.DebugParser
Résultat System.Collections.Generic

RecognitionException() public méthode

public RecognitionException ( RecognitionException e ) : void
e RecognitionException
Résultat void

Rewind() public méthode

public Rewind ( ) : void
Résultat void

Rewind() public méthode

public Rewind ( int i ) : void
i int
Résultat void

SemanticPredicate() public méthode

public SemanticPredicate ( bool result, string predicate ) : void
result bool
predicate string
Résultat void

SetParser() public méthode

public SetParser ( Antlr.Runtime.Debug.DebugParser parser ) : void
parser Antlr.Runtime.Debug.DebugParser
Résultat void

Terminate() public méthode

public Terminate ( ) : void
Résultat void

ToNotifyString() public méthode

public ToNotifyString ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string

ToString() public static méthode

public static ToString ( ProfileStats stats ) : string
stats ProfileStats
Résultat string

Trim() protected méthode

protected Trim ( int X, int n ) : int[]
X int
n int
Résultat int[]

Property Details

DataSeparator public_oe static_oe property

public static string DataSeparator
Résultat string

NewLine public_oe static_oe property

public static string NewLine
Résultat string

RuntimeStatsFilename public_oe static_oe property

public static string RuntimeStatsFilename
Résultat string

Version public_oe static_oe property

public static string Version
Résultat string

backtrackDepth protected_oe property

protected int backtrackDepth
Résultat int

currentGrammarFileName protected_oe property

protected Stack currentGrammarFileName
Résultat Stack

currentLine protected_oe property

protected Stack currentLine
Résultat Stack

currentPos protected_oe property

protected Stack currentPos
Résultat Stack

currentRuleName protected_oe property

protected Stack currentRuleName
Résultat Stack

decisionStack protected_oe property

protected Stack decisionStack
Résultat Stack

decisions protected_oe property

protected DoubleKeyMap decisions
Résultat DoubleKeyMap

lastRealTokenTouchedInDecision protected_oe property

protected IToken lastRealTokenTouchedInDecision
Résultat IToken

parser public_oe property

public DebugParser,Antlr.Runtime.Debug parser
Résultat Antlr.Runtime.Debug.DebugParser

uniqueRules protected_oe property

protected Dictionary uniqueRules
Résultat bool>.Dictionary