Package com.netcracker.profiler.sax.raw
Class TreeTraceVisitor
java.lang.Object
com.netcracker.profiler.sax.raw.TreeTraceVisitor
- Direct Known Subclasses:
StringTreeTraceAdapter,TreeBuilderTrace
A visitor to visit profiling event stream:
method enter
method exit
label
Methods must be called in the following order
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intThe API version implemented by this visitor.protected final TreeTraceVisitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetSp()longgetTime()voidvisitEnd()voidvisitEnter(int methodId) voidvoidvisitLabel(int labelId, ValueHolder value) voidvisitTimeAdvance(long timeAdvance)
-
Field Details
-
api
protected final int apiThe API version implemented by this visitor. The value of this field must be one ofProfilerConstants.PROFILER_V1. -
tv
-
-
Constructor Details
-
TreeTraceVisitor
public TreeTraceVisitor(int api) -
TreeTraceVisitor
-
-
Method Details
-
visitEnter
public void visitEnter(int methodId) -
visitExit
public void visitExit() -
visitLabel
-
visitTimeAdvance
public void visitTimeAdvance(long timeAdvance) -
visitEnd
public void visitEnd() -
getSp
public int getSp() -
getTime
public long getTime() -
asSkipVisitEnd
-