| Modifier and Type | Method and Description |
|---|---|
static CompilationPrinter |
begin(OptionValues options,
CompilationIdentifier id,
JavaMethod method,
int entryBCI)
Gets an object that will report statistics for a compilation if
GraalCompilerOptions.PrintCompilation is enabled and TTY is not suppressed. |
void |
finish(CompilationResult result)
Notifies this object that the compilation finished and the informational line should be
printed to
TTY. |
public static CompilationPrinter begin(OptionValues options, CompilationIdentifier id, JavaMethod method, int entryBCI)
GraalCompilerOptions.PrintCompilation is enabled and TTY is not suppressed.
This method should be called just before a compilation starts as it captures pre-compilation
data for the purpose of printing the post-compilation
statistics.options - used to get the value of GraalCompilerOptions.PrintCompilationid - the identifier for the compilationmethod - the method for which code is being compiledentryBCI - the BCI at which compilation startspublic void finish(CompilationResult result)
TTY.