The structure of the 2.0 entry is defined in struct PerfDataEnry as described 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;
AbstractPerfDataBuffer
| Modifier and Type | Field and Description |
|---|---|
| private static final ArrayList | |
| pack-priv ArrayList | |
| pack-priv long | |
| pack-priv int | |
| pack-priv IntegerMonitor | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv PerfDataBufferPrologue | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | PerfDataBuffer(ByteBuffer
the buffer containing the instrumentation data buffer, int the Local Java Virtual Machine Identifier for this
instrumentation buffer. lvmid)Construct a PerfDataBuffer instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | buildMonitorMap(Map<String, Monitor> map)
Implements abstract sun. 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)
Implements abstract sun. get the list of inserted and removed monitors since last called. |
| protected void | getNewMonitors(Map<String, Monitor> map)
Implements abstract sun. get the new Monitor objects from the Map of Monitor objects. |
| protected Monitor | |
| protected void | synchWithTarget()
Method that waits until the target jvm indicates that its shared memory is safe to access. |
| EMPTY_LIST | back to summary |
|---|---|
| private static final ArrayList<Monitor> EMPTY_LIST | |
| insertedMonitors | back to summary |
|---|---|
| pack-priv ArrayList<Monitor> insertedMonitors | |
| lastNumEntries | back to summary |
|---|---|
| pack-priv long lastNumEntries | |
| nextEntry | back to summary |
|---|---|
| pack-priv int nextEntry | |
| overflow | back to summary |
|---|---|
| pack-priv IntegerMonitor overflow | |
| PERFDATA_DATAOFFSET_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_DATAOFFSET_OFFSET | |
| PERFDATA_DATAOFFSET_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_DATAOFFSET_SIZE | |
| PERFDATA_DATATYPE_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_DATATYPE_OFFSET | |
| PERFDATA_DATATYPE_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_DATATYPE_SIZE | |
| PERFDATA_DATAUNITS_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_DATAUNITS_OFFSET | |
| PERFDATA_DATAUNITS_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_DATAUNITS_SIZE | |
| PERFDATA_DATAVAR_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_DATAVAR_OFFSET | |
| PERFDATA_DATAVAR_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_DATAVAR_SIZE | |
| PERFDATA_ENTRYLENGTH_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_ENTRYLENGTH_OFFSET | |
| PERFDATA_ENTRYLENGTH_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_ENTRYLENGTH_SIZE | |
| PERFDATA_FLAGS_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_FLAGS_OFFSET | |
| PERFDATA_FLAGS_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_FLAGS_SIZE | |
| PERFDATA_NAMEOFFSET_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_NAMEOFFSET_OFFSET | |
| PERFDATA_NAMEOFFSET_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_NAMEOFFSET_SIZE | |
| PERFDATA_VECTORLENGTH_OFFSET | back to summary |
|---|---|
| private static final int PERFDATA_VECTORLENGTH_OFFSET | |
| PERFDATA_VECTORLENGTH_SIZE | back to summary |
|---|---|
| private static final int PERFDATA_VECTORLENGTH_SIZE | |
| prologue | back to summary |
|---|---|
| pack-priv PerfDataBufferPrologue prologue | |
| syncWaitMs | back to summary |
|---|---|
| private static final int syncWaitMs | |
| PerfDataBuffer | back to summary |
|---|---|
| public PerfDataBuffer(ByteBuffer buffer, int lvmid) throws MonitorException Construct a PerfDataBuffer instance.
This class is dynamically loaded by
| |
| buildMonitorMap | back to summary |
|---|---|
| protected void buildMonitorMap(Map<String, Monitor> map) throws MonitorException Implements abstract sun. Doc from sun. build the map of Monitor objects.
| |
| buildPseudoMonitors | back to summary |
|---|---|
| protected void buildPseudoMonitors(Map<String, Monitor> map) Build the pseudo monitors used to map the prolog data into counters. | |
| getMonitorStatus | back to summary |
|---|---|
| protected MonitorStatus getMonitorStatus(Map<String, Monitor> map) throws MonitorException Implements abstract sun. Doc from sun. get the list of inserted and removed monitors since last called.
| |
| getNewMonitors | back to summary |
|---|---|
| protected void getNewMonitors(Map<String, Monitor> map) throws MonitorException Implements abstract sun. Doc from sun. get the new Monitor objects from the Map of Monitor objects.
| |
| getNextMonitorEntry | back to summary |
|---|---|
| protected Monitor getNextMonitorEntry() throws MonitorException method to extract the next monitor entry from the instrumentation memory. assumes that nextEntry is the offset into the byte array at which to start the search for the next entry. method leaves next entry pointing to the next entry or to the end of data. | |
| synchWithTarget | back to summary |
|---|---|
| protected void synchWithTarget() throws MonitorException Method that waits until the target jvm indicates that its shared memory is safe to access. | |