Class PrintInstructionTracer.Builder
java.lang.Object
com.oracle.truffle.api.bytecode.debug.PrintInstructionTracer.Builder
- Enclosing class:
PrintInstructionTracer
Builder for
PrintInstructionTracer instances.
Call filter(Predicate) to restrict tracing to selected BytecodeNodes, then
build() to create the tracer.
- Since:
- 25.1
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newPrintInstructionTracerinstance using the configured output sink and optional filter.filter(Predicate<BytecodeNode> filterClause) Sets an optional filter that decides whichBytecodeNodes should be traced.
-
Method Details
-
filter
Sets an optional filter that decides whichBytecodeNodes should be traced.If the predicate returns
falsefor a given node, instructions executed in that node are not printed.- Parameters:
filterClause- predicate that returns true if tracing should be enabled for the given node- Returns:
- this builder
- Since:
- 25.1
-
build
Creates a newPrintInstructionTracerinstance using the configured output sink and optional filter.- Returns:
- a new tracer
- Since:
- 25.1
-