java.lang.Object
com.ibm.jvm.format.TraceFileHeader
- All Implemented Interfaces:
TraceFileHeader
Encapsulates the header for a trace file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected TraceSection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Stringprotected final intreturns the size of the buffers in the associated trace filelonglonglonglongprotected final longreturns the length of this file headerprotected final StringgetNextFormatFileName(String previous) String[]final longString[]protected final StringString[]protected static final booleanisUTE()returns true if a UTE trace file is being processedprotected final voidprotected final voidsummarize(BufferedWriter out)
-
Field Details
-
traceSection
-
INTERNAL
protected static final int INTERNAL- See Also:
-
EXTERNAL
protected static final int EXTERNAL- See Also:
-
-
Constructor Details
-
TraceFileHeader
- Throws:
IOException
-
-
Method Details
-
processTraceBufferHeaders
- Throws:
IOException
-
summarize
- Throws:
IOException
-
getLength
protected final long getLength()returns the length of this file header- Returns:
- a long
-
getBufferSize
protected final int getBufferSize()returns the size of the buffers in the associated trace file- Returns:
- an int
-
formatFileName
-
getVMLevel
-
getNextFormatFileName
-
isUTE
protected static final boolean isUTE()returns true if a UTE trace file is being processed- Returns:
- a boolean
-
getTraceDataStart
public final long getTraceDataStart() -
getVMVersion
- Specified by:
getVMVersionin interfaceTraceFileHeader- Returns:
- a String representation of the JVM that produced the current TraceFile, null if no valid data.
-
getVMStartUpParameters
- Specified by:
getVMStartUpParametersin interfaceTraceFileHeader- Returns:
- a String array representation of the startup parameters that were used to start the JVM that produced the current TraceFile, null if no valid data.
-
getTraceParameters
- Specified by:
getTraceParametersin interfaceTraceFileHeader- Returns:
- a String array representation of the Trace startup parameters that were used to start the JVM that produced the current TraceFile, null if no valid data.
-
getSysProcessorInfo
- Specified by:
getSysProcessorInfoin interfaceTraceFileHeader- Returns:
- a String array representation of the system on which the JVM that produced the current TraceFile was run, null if no valid data.
-
getJVMStartedMillis
public long getJVMStartedMillis()- Specified by:
getJVMStartedMillisin interfaceTraceFileHeader- Returns:
- the millisecond time at which the JVM that produced the current TraceFile was started. Returns -1 if no valid data.
-
getLastBufferWriteMillis
public long getLastBufferWriteMillis()- Specified by:
getLastBufferWriteMillisin interfaceTraceFileHeader- Returns:
- the millisecond time at which the JVM that produced the current TraceFile wrote its most recent TracePoint before the production of the current TraceFile. Returns -1 if no valid data.
-
getFirstTracePointMillis
public long getFirstTracePointMillis()- Specified by:
getFirstTracePointMillisin interfaceTraceFileHeader- Returns:
- the millisecond time of the first TracePoint in the current TraceFile. This may not be the first TracePoint that the JVM produced. Returns -1 if no valid data.
-
getLastTracePointMillis
public long getLastTracePointMillis()- Specified by:
getLastTracePointMillisin interfaceTraceFileHeader- Returns:
- the millisecond time of the last TracePoint in the current TraceFile. This may not be the last TracePoint that the JVM produced. Returns -1 if no valid data.
-