public final class RecordingPrinter
extends java.lang.Object
PrintWriter
.Modifier and Type | Class and Description |
---|---|
static class |
RecordingPrinter.Verbosity
Verbosity level to use when printing events.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
formatValues |
private java.io.PrintWriter |
out |
private IOnLoadFilter |
recordingFilter |
private RecordingPrinter.Verbosity |
verbosity |
Constructor and Description |
---|
RecordingPrinter(java.io.PrintWriter output,
RecordingPrinter.Verbosity verbosity,
boolean formatValues) |
RecordingPrinter(java.io.PrintWriter output,
RecordingPrinter.Verbosity verbosity,
boolean formatValues,
IOnLoadFilter recordingFilter) |
Modifier and Type | Method and Description |
---|---|
private static RecordingPrinter |
buildFromOptions(java.io.PrintWriter output,
java.lang.String[] args) |
private static java.lang.String |
formatPackage(IMCPackage mcPackage) |
static void |
main(java.lang.String[] args)
Main method that will print a recording Usage:
|
void |
print(IItemCollection events) |
void |
printEvent(IItem e) |
private static void |
printFrame(java.lang.String indent,
IMCFrame frame,
java.io.PrintWriter out) |
private static void |
printHelp() |
private void |
printTrace(IMCStackTrace trace) |
private void |
printValue(IAccessorKey<?> attribute,
IDescribable desc,
java.lang.Object value) |
private void |
printValues(IItem event) |
private java.lang.String |
stringify(java.lang.String indent,
java.lang.Object value) |
private static java.lang.String |
stringifyMethod(IMCMethod method) |
private static java.lang.String |
stringifyType(IMCType type) |
private final RecordingPrinter.Verbosity verbosity
private final boolean formatValues
private final IOnLoadFilter recordingFilter
private final java.io.PrintWriter out
public RecordingPrinter(java.io.PrintWriter output, RecordingPrinter.Verbosity verbosity, boolean formatValues, IOnLoadFilter recordingFilter)
public RecordingPrinter(java.io.PrintWriter output, RecordingPrinter.Verbosity verbosity, boolean formatValues)
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.InterruptedException, CouldNotLoadRecordingException
java org.openjdk.jmc.flightrecorder [-formatValues] [-brief] fileName - formatValues will format values in a suitable unit (may loose precision) - brief will print only parts of all event values.
java.io.IOException
java.lang.InterruptedException
CouldNotLoadRecordingException
public void print(IItemCollection events)
private static RecordingPrinter buildFromOptions(java.io.PrintWriter output, java.lang.String[] args) throws java.text.ParseException
java.text.ParseException
private static void printHelp()
public void printEvent(IItem e)
private void printValues(IItem event)
private void printValue(IAccessorKey<?> attribute, IDescribable desc, java.lang.Object value)
private java.lang.String stringify(java.lang.String indent, java.lang.Object value)
private void printTrace(IMCStackTrace trace)
private static void printFrame(java.lang.String indent, IMCFrame frame, java.io.PrintWriter out)
private static java.lang.String stringifyType(IMCType type)
private static java.lang.String stringifyMethod(IMCMethod method)
private static java.lang.String formatPackage(IMCPackage mcPackage)