java.lang.Object
com.ibm.jvm.format.TraceRecord50
- All Implemented Interfaces:
Comparable
Extends Trace Record. Special processing needed for internal trace records.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addOverspillData
(byte[] overspillFromPreviousBuffer, BigInteger upperWord) int
Compares this object with the specified object for order.byte[]
long
long
int
boolean
boolean
primeRecord
(TraceFile traceFile) primeRecord readies this UtTraceRecord to have its tracepoint data read.int
processTraceBufferHeader
(TraceFile traceFile, long start, int bufferLength) void
setTimeStamp
(BigInteger newTimeStamp) void
setTraceType
(int traceType)
-
Field Details
-
INTERNAL_WRAP_SPLIT_TP
public static final int INTERNAL_WRAP_SPLIT_TP- See Also:
-
EXTERNAL_WRAP_SPLIT_TP
public static final int EXTERNAL_WRAP_SPLIT_TP- See Also:
-
-
Constructor Details
-
TraceRecord50
public TraceRecord50()
-
-
Method Details
-
processTraceBufferHeader
public int processTraceBufferHeader(TraceFile traceFile, long start, int bufferLength) throws IOException - Throws:
IOException
-
getNextTracePoint
-
addOverspillData
-
isMiddleOfTracePoint
public boolean isMiddleOfTracePoint() -
getExtraData
public byte[] getExtraData() -
primeRecord
primeRecord readies this UtTraceRecord to have its tracepoint data read. Each tracepoint's length field is at the end of the tracepoint, so the tracepoints are formatted backwards out of the record. To enable forward iteration, the whole record must be formatted into a queue, which is then iterated over in reverse order. The record should already have been primed with e.g. it's location in the tracefile through it's constructor.- Parameters:
traceFile
-- Returns:
- true if it works, false if any errors are encountered. Errors are reported internally.
- Throws:
IOException
- if there is an error reading the record's data from the trace file.
-
getThreadName
-
getThreadIDAsLong
public long getThreadIDAsLong() -
getFileName
-
getOffsetInFile
public long getOffsetInFile() -
getTimeStamp
-
getLastTimerWrap
-
setTimeStamp
-
compareTo
Description copied from interface:java.lang.Comparable
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.The implementor must ensure
signum
(x.compareTo(y)) == -signum(y.compareTo(x))
for allx
andy
. (This implies thatx.compareTo(y)
must throw an exception if and only ify.compareTo(x)
throws an exception.)The implementor must also ensure that the relation is transitive:
(x.compareTo(y) > 0 && y.compareTo(z) > 0)
impliesx.compareTo(z) > 0
.Finally, the implementor must ensure that
x.compareTo(y)==0
implies thatsignum(x.compareTo(z)) == signum(y.compareTo(z))
, for allz
.- Specified by:
compareTo
in interfaceComparable
- Parameters:
other
- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
getTraceType
public int getTraceType() -
setTraceType
public void setTraceType(int traceType) -
getLastUpperWord
-