public final class GraphPrinterDumpHandler extends Object implements DebugDumpHandler
BinaryGraphPrinter to generate a graph
representation that can be inspected with the Graph Visualizer.| Modifier and Type | Class and Description |
|---|---|
static interface |
GraphPrinterDumpHandler.GraphPrinterSupplier |
| Modifier and Type | Field and Description |
|---|---|
protected org.graalvm.compiler.printer.GraphPrinter |
printer |
| Constructor and Description |
|---|
GraphPrinterDumpHandler(GraphPrinterDumpHandler.GraphPrinterSupplier printerSupplier)
Creates a new
GraphPrinterDumpHandler. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flushes and releases resources managed by this dump handler.
|
void |
dump(Object object,
DebugContext debug,
boolean forced,
String format,
Object... arguments)
If the type of
object is supported by this dumper, then a representation of
object is sent to some consumer in a format determined by this object. |
public GraphPrinterDumpHandler(GraphPrinterDumpHandler.GraphPrinterSupplier printerSupplier)
GraphPrinterDumpHandler.printerSupplier - Supplier used to create the GraphPrinter. Should supply an optional or
null in case of failure.public void dump(Object object, DebugContext debug, boolean forced, String format, Object... arguments)
DebugDumpHandlerobject is supported by this dumper, then a representation of
object is sent to some consumer in a format determined by this object.dump in interface DebugDumpHandlerobject - the object to be dumpeddebug - the debug context requesting the dumpforced - true if called from DebugContext.forceDump(Object, String, Object...)format - a format string specifying a title that describes the context of the dump
(e.g., the compiler phase in which request is made)arguments - arguments referenced by the format specifiers in formatpublic void close()
DebugDumpHandlerDebugDumpHandler.dump(java.lang.Object, org.graalvm.compiler.debug.DebugContext, boolean, java.lang.String, java.lang.Object...) will create and open new resources. That is, this method can be used to reset
the handler.close in interface Closeableclose in interface AutoCloseableclose in interface DebugDumpHandler