public class PerfDataBuffer extends PerfDataBufferImpl
The structure of the 2.0 entry is defined in struct PerfDataEnry as decsribed in perfMemory.hpp. This structure looks like:
typedef struct {
jint entry_length; // entry length in bytes
jint name_offset; // offset to entry name, relative to start
// of entry
jint vector_length; // length of the vector. If 0, then scalar.
jbyte data_type; // JNI field descriptor type
jbyte flags; // miscellaneous attribute flags
// 0x01 - supported
jbyte data_units; // unit of measure attribute
jbyte data_variability; // variability attribute
jbyte data_offset; // offset to data item, relative to start
// of entry.
} PerfDataEntry;
AbstractPerfDataBufferaliasCache, aliasMap, buffer, lvmid, monitors| Constructor and Description |
|---|
PerfDataBuffer(ByteBuffer buffer,
int lvmid)
Construct a PerfDataBuffer instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildMonitorMap(Map<String,Monitor> map)
build the map of Monitor objects.
|
protected void |
buildPseudoMonitors(Map<String,Monitor> map)
Build the pseudo monitors used to map the prolog data into counters.
|
protected MonitorStatus |
getMonitorStatus(Map<String,Monitor> map)
get the list of inserted and removed monitors since last called.
|
protected void |
getNewMonitors(Map<String,Monitor> map)
get the new Monitor objects from the Map of Monitor objects.
|
protected Monitor |
getNextMonitorEntry()
method to extract the next monitor entry from the instrumentation memory.
|
protected void |
synchWithTarget()
Method that waits until the target jvm indicates that
its shared memory is safe to access.
|
findByAlias, findByName, findByPattern, getBytes, getCapacity, getLocalVmId, getMonitorStatuspublic PerfDataBuffer(ByteBuffer buffer, int lvmid) throws MonitorException
This class is dynamically loaded by
AbstractPerfDataBuffer.createPerfDataBuffer(java.nio.ByteBuffer, int), and this
constructor is called to instantiate the instance.
buffer - the buffer containing the instrumentation datalvmid - the Local Java Virtual Machine Identifier for this
instrumentation buffer.MonitorExceptionprotected void buildMonitorMap(Map<String,Monitor> map) throws MonitorException
buildMonitorMap in class PerfDataBufferImplmap - the map of Monitors.MonitorException - Thrown if communications errors occur
while communicating with the target.protected void getNewMonitors(Map<String,Monitor> map) throws MonitorException
getNewMonitors in class PerfDataBufferImplmap - the map of Monitors.MonitorException - Thrown if communications errors occur
while communicating with the target.protected MonitorStatus getMonitorStatus(Map<String,Monitor> map) throws MonitorException
getMonitorStatus in class PerfDataBufferImplmap - the map of Monitors.MonitorException - Thrown if communications errors occur
while communicating with the target.protected void buildPseudoMonitors(Map<String,Monitor> map)
protected void synchWithTarget()
throws MonitorException
MonitorExceptionprotected Monitor getNextMonitorEntry() throws MonitorException
MonitorExceptionCopyright © 2017–2018 earcam. All rights reserved.