- java.lang.Object
-
- com.ibm.jvm.format.TraceFormat
-
public final class TraceFormat extends Object
Main routine for formatting the trace file. Reads raw trace data and formats in a platform independent manner
-
-
Field Summary
Fields Modifier and Type Field Description protected static PrintStreamerrStreamprotected static intexpectedRecordsprotected static BigIntegerfirstprotected static Stringheaderprotected static Stringheadingsprotected static intinvalidBuffersprotected static BigIntegerlastprotected static BigIntegerlastWritePlatformprotected static BigIntegerlastWriteSystemprotected static longlostRecordCountprotected static MessageFilemessageFileprotected static PrintStreamoutStreamprotected static BigIntegeroverallStartPlatformprotected static BigIntegeroverallStartSystemstatic booleanSUPPRESS_VERSION_WARNINGSprotected static Vectorthreadsprotected static BigIntegertimeConversionprotected static inttraceFormatMajorVersionprotected static inttraceFormatMinorVersionprotected static StringusageMessageprotected static floatverMod
-
Constructor Summary
Constructors Constructor Description TraceFormat()Null constructor for the formatter.TraceFormat(PrintStream outStream, String[] args)Constructor used to instantiate the formatter programmatically.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoSummary(BufferedWriter out)TracePointgetNextTracePoint()TraceFileHeadergetTraceFileHeader()TraceThread[]getTraceThreads()static StringgetUserVMIdentifier()static voidmain(String[] args)Main 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 Detail
-
traceFormatMajorVersion
protected static final int traceFormatMajorVersion
- See Also:
- Constant Field Values
-
traceFormatMinorVersion
protected static final int traceFormatMinorVersion
- See Also:
- Constant Field Values
-
lostRecordCount
protected static long lostRecordCount
-
messageFile
protected static MessageFile messageFile
-
threads
protected static Vector threads
-
invalidBuffers
protected static int invalidBuffers
-
verMod
protected static float verMod
-
overallStartSystem
protected static BigInteger overallStartSystem
-
overallStartPlatform
protected static BigInteger overallStartPlatform
-
first
protected static BigInteger first
-
last
protected static BigInteger last
-
lastWritePlatform
protected static BigInteger lastWritePlatform
-
lastWriteSystem
protected static BigInteger lastWriteSystem
-
timeConversion
protected static BigInteger timeConversion
-
headings
protected static String headings
-
outStream
protected static PrintStream outStream
-
errStream
protected static PrintStream errStream
-
expectedRecords
protected static int expectedRecords
-
usageMessage
protected static final String usageMessage
- See Also:
- Constant Field Values
-
header
protected static final String header
- See Also:
- Constant Field Values
-
SUPPRESS_VERSION_WARNINGS
public static final boolean SUPPRESS_VERSION_WARNINGS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TraceFormat
public TraceFormat()
Null constructor for the formatter.- Parameters:
None-This is the version used when you run TraceFormat from the command line.
-
TraceFormat
public TraceFormat(PrintStream outStream, String[] args)
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 Detail
-
main
public static void main(String[] args)
Main entry point for running the formatter.- Parameters:
args-
-
readAndFormat
public void readAndFormat(String[] args, boolean processFully)
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:
main(java.lang.String[])
-
doSummary
protected int doSummary(BufferedWriter out) throws IOException
- Throws:
IOException
-
getUserVMIdentifier
public static String getUserVMIdentifier()
-
getTraceThreads
public TraceThread[] getTraceThreads()
-
getNextTracePoint
public TracePoint getNextTracePoint()
-
getTraceFileHeader
public TraceFileHeader getTraceFileHeader()
-
-