
public class PerfDataBufferPrologue extends AbstractPerfDataBufferPrologue
The PerfDataBufferPrologue class supports parsing of the version specific portions of the PerfDataPrologue C structure:
typedef struct {
... // handled by superclass
jint used; // number of PerfData memory bytes used
jint overflow; // number of bytes of overflow
jlong mod_time_stamp; // time stamp of the last structural modification
jint entry_offset; // offset of the first PerfDataEntry
jint num_entries; // number of allocated PerfData entries
} PerfDataPrologue
byteBuffer, PERFDATA_MAJOR_NAME, PERFDATA_MINOR_NAME| Constructor and Description |
|---|
PerfDataBufferPrologue(ByteBuffer byteBuffer)
Create an instance of PerfDataBufferPrologue from the given
ByteBuffer object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferSize()
Get the size of the instrumentation memory buffer.
|
int |
getEntryOffset()
Get the offset of the first PerfDataEntry.
|
long |
getModificationTimeStamp()
Get the time of last modification for the instrumentation
memory buffer.
|
int |
getNumEntries()
Get the offset of the first PerfDataEntry.
|
int |
getOverflow()
Get the buffer overflow amount.
|
int |
getSize()
Get the size of the header portion of the instrumentation buffer.
|
int |
getUsed()
Get the utilization of the instrumentation memory buffer.
|
boolean |
isAccessible()
Get the accessible flag.
|
boolean |
supportsAccessible()
Test if the accessible flag is supported by this version of
the PerfDataBufferPrologue.
|
getByteOrder, getByteOrder, getMagic, getMagic, getMajorVersion, getMajorVersion, getMinorVersion, getMinorVersion, majorVersionBuffer, minorVersionBufferpublic PerfDataBufferPrologue(ByteBuffer byteBuffer) throws MonitorException
byteBuffer - the buffer containing the binary header dataMonitorExceptionpublic boolean supportsAccessible()
supportsAccessible in class AbstractPerfDataBufferPrologueAbstractPerfDataBufferPrologue.isAccessible()public boolean isAccessible()
isAccessible in class AbstractPerfDataBufferPrologueAbstractPerfDataBufferPrologue.supportsAccessible()public int getUsed()
public int getBufferSize()
public int getOverflow()
public long getModificationTimeStamp()
public int getEntryOffset()
public int getNumEntries()
public int getSize()
getSize in class AbstractPerfDataBufferPrologueCopyright © 2017–2018 earcam. All rights reserved.