java.lang.Object | ||
↳ | sun.jvmstat.perfdata.monitor.PerfDataBufferImpl | |
↳ | sun.jvmstat.perfdata.monitor.v2_0.PerfDataBuffer |
The concrete implementation of version 2.0 of the HotSpot PerfData Instrumentation buffer. This class is responsible for parsing the instrumentation memory and constructing the necessary objects to represent and access the instrumentation objects contained in the memory buffer.
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;
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a PerfDataBuffer instance.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
build the map of Monitor objects.
| |||||||||||
Build the pseudo monitors used to map the prolog data into counters.
| |||||||||||
get the list of inserted and removed monitors since last called.
| |||||||||||
get the new Monitor objects from the Map of Monitor objects.
| |||||||||||
method to extract the next monitor entry from the instrumentation memory.
| |||||||||||
Method that waits until the target jvm indicates that
its shared memory is safe to access.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Construct a PerfDataBuffer instance.
This class is dynamically loaded by
createPerfDataBuffer(ByteBuffer, int)
, and this
constructor is called to instantiate the instance.
buffer | the buffer containing the instrumentation data |
---|---|
lvmid | the Local Java Virtual Machine Identifier for this instrumentation buffer. |
MonitorException |
---|
Build the pseudo monitors used to map the prolog data into counters.
get the list of inserted and removed monitors since last called.
map | the map of Monitors. |
---|
MonitorException |
---|
get the new Monitor objects from the Map of Monitor objects.
map | the map of Monitors. |
---|
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.
MonitorException |
---|
Method that waits until the target jvm indicates that its shared memory is safe to access.
MonitorException |
---|