PrintInstructionTracer.Builder
public static final class PrintInstructionTracer.Builder- Inheritance
ObjectBuilder
- Enclosing type
PrintInstructionTracer
Builder for PrintInstructionTracer instances.
Call filter(Predicate) to restrict tracing to selected BytecodeNodes, then build() to create the tracer.
Methods2
PrintInstructionTracer.Builder filter(Predicate<BytecodeNode>)
filter
since 25.1public PrintInstructionTracer.Builder filter(Predicate< BytecodeNode> filterClause)Sets an optional filter that decides which BytecodeNodes should be traced.
If the predicate returns false for a given node, instructions executed in that node are not printed.
Parameters
filterClausePredicate<BytecodeNode> - predicate that returns true if tracing should be enabled for the given node
Returns
PrintInstructionTracer.Builder- this builder
PrintInstructionTracer build()
build
since 25.1public PrintInstructionTracer build()Creates a new PrintInstructionTracer instance using the configured output sink and optional filter.
Returns
PrintInstructionTracer- a new tracer