com.jrockit.mc.flightrecorder
Class RecordingPrinter

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.RecordingPrinter

public final class RecordingPrinter
extends java.lang.Object

Prints a flight recording to a PrintStream

Author:
Erik Gahlin

Nested Class Summary
static class RecordingPrinter.TimeFormat
          Time format to use when printing events.
static class RecordingPrinter.Verbosity
          Verbosity level to use when printing events.
 
Constructor Summary
RecordingPrinter(java.io.PrintStream output, FlightRecording recording)
          Creates a recording print a FlightRecording to a PrintStream
 
Method Summary
static void main(java.lang.String[] args)
          Main method that will print a recording Usage: java com.jrockit.mc.flightrecorder [-humanTime] [-brief] fileName -humanTime will format the time into days, hours, minutes instead of nanoseconds since 1970 - brief will print only parts of all avebt values.
 void print()
          Print the recording.
 void setTimeFormat(RecordingPrinter.TimeFormat timeFormat)
          Sets the time format to use when printing events.
 void setVerbosityLevel(RecordingPrinter.Verbosity verbosity)
          Sets the verbosity level when printing events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordingPrinter

public RecordingPrinter(java.io.PrintStream output,
                        FlightRecording recording)
Creates a recording print a FlightRecording to a PrintStream

Parameters:
output - the stream to output the result
recording - the recording to use.
Method Detail

setTimeFormat

public void setTimeFormat(RecordingPrinter.TimeFormat timeFormat)
Sets the time format to use when printing events. See RecordingPrinter.TimeFormat for more information

Parameters:
timeFormat - the timeformat.

setVerbosityLevel

public void setVerbosityLevel(RecordingPrinter.Verbosity verbosity)
Sets the verbosity level when printing events. See RecordingPrinter.Verbosity from more information.

Parameters:
verbosity - the verbosity level.

main

public static void main(java.lang.String[] args)
Main method that will print a recording Usage:
 java com.jrockit.mc.flightrecorder [-humanTime] [-brief] fileName
 
 -humanTime will format the time into days, hours, minutes instead of
 nanoseconds since 1970
 
 - brief will print only parts of all avebt values.
 

Parameters:
args - the arguments

print

public void print()
Print the recording.



Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.