java.lang.Object
com.ibm.jvm.format.TraceFormat
Main routine for formatting the trace file. Reads raw trace data and formats
in a platform independent manner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static PrintStreamprotected static intprotected static BigIntegerprotected static final Stringprotected static Stringprotected static intprotected static BigIntegerprotected static BigIntegerprotected static BigIntegerprotected static longprotected static MessageFileprotected static PrintStreamprotected static BigIntegerprotected static BigIntegerstatic final booleanprotected static Vectorprotected static BigIntegerprotected static final intprotected static final intprotected static final Stringprotected static float -
Constructor Summary
ConstructorsConstructorDescriptionNull constructor for the formatter.TraceFormat(PrintStream outStream, String[] args) Constructor used to instantiate the formatter programmatically. -
Method Summary
Modifier and TypeMethodDescriptionprotected intdoSummary(BufferedWriter out) static Stringstatic voidMain entry point for running the formatter.voidreadAndFormat(String[] args, boolean processFully) parses command-line args, if in command-line mode, reads the input file(s) and outputs the result
-
Field Details
-
traceFormatMajorVersion
protected static final int traceFormatMajorVersion- See Also:
-
traceFormatMinorVersion
protected static final int traceFormatMinorVersion- See Also:
-
lostRecordCount
protected static long lostRecordCount -
messageFile
-
threads
-
invalidBuffers
protected static int invalidBuffers -
verMod
protected static float verMod -
overallStartSystem
-
overallStartPlatform
-
first
-
last
-
lastWritePlatform
-
lastWriteSystem
-
timeConversion
-
headings
-
outStream
-
errStream
-
expectedRecords
protected static int expectedRecords -
usageMessage
- See Also:
-
header
- See Also:
-
SUPPRESS_VERSION_WARNINGS
public static final boolean SUPPRESS_VERSION_WARNINGS- See Also:
-
-
Constructor Details
-
TraceFormat
public TraceFormat()Null constructor for the formatter.- Parameters:
None-This is the version used when you run TraceFormat from the command line.
-
TraceFormat
Constructor used to instantiate the formatter programmatically.- Parameters:
args- - the same as you would specify on the command line.This version writes to the specified PrintStream.
-
-
Method Details
-
main
Main entry point for running the formatter.- Parameters:
args-
-
readAndFormat
parses command-line args, if in command-line mode, reads the input file(s) and outputs the result- Parameters:
args- the command line argumentsprocessFully- if true, the formatter will read the trace file and format the tracepoints into a file if false, the formatter will prime the trace file so that an external program can iterate over the tracepoints.- See Also:
-
doSummary
- Throws:
IOException
-
getUserVMIdentifier
-
getTraceThreads
-
getNextTracePoint
-
getTraceFileHeader
-