Package org.openjdk.jmc.flightrecorder
Class RecordingPrinter
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.RecordingPrinter
-
public final class RecordingPrinter extends java.lang.ObjectPrints a flight recording to aPrintWriter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecordingPrinter.VerbosityVerbosity level to use when printing events.
-
Constructor Summary
Constructors Constructor Description RecordingPrinter(java.io.PrintWriter output, RecordingPrinter.Verbosity verbosity, boolean formatValues)RecordingPrinter(java.io.PrintWriter output, RecordingPrinter.Verbosity verbosity, boolean formatValues, IOnLoadFilter recordingFilter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Main method that will print a recording Usage:voidprint(IItemCollection events)voidprintEvent(IItem e)
-
-
-
Constructor Detail
-
RecordingPrinter
public RecordingPrinter(java.io.PrintWriter output, RecordingPrinter.Verbosity verbosity, boolean formatValues, IOnLoadFilter recordingFilter)
-
RecordingPrinter
public RecordingPrinter(java.io.PrintWriter output, RecordingPrinter.Verbosity verbosity, boolean formatValues)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.InterruptedException, CouldNotLoadRecordingExceptionMain method that will print a recording Usage: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.
- Throws:
java.io.IOExceptionjava.lang.InterruptedExceptionCouldNotLoadRecordingException
-
print
public void print(IItemCollection events)
-
printEvent
public void printEvent(IItem e)
-
-