pub struct HeapGraphType {
pub id: Option<u64>,
pub location_id: Option<u64>,
pub class_name: Option<String>,
pub object_size: Option<u64>,
pub superclass_id: Option<u64>,
pub reference_field_id: Vec<u64>,
pub kind: Option<i32>,
pub classloader_id: Option<u64>,
}
Fields§
§id: Option<u64>
TODO(fmayer): Consider removing this and using the index in the repeaed field to save space.
location_id: Option<u64>
§class_name: Option<String>
§object_size: Option<u64>
Size of objects of this type.
superclass_id: Option<u64>
§reference_field_id: Vec<u64>
Indices for InternedData.field_names for the names of the fields of instances of this class. This does NOT include the fields from superclasses. The consumer of this data needs to walk all super classes to get a full lists of fields. Objects always write the fields in order of most specific class to the furthest up superclass.
kind: Option<i32>
§classloader_id: Option<u64>
Implementations§
Source§impl HeapGraphType
impl HeapGraphType
Sourcepub fn location_id(&self) -> u64
pub fn location_id(&self) -> u64
Returns the value of location_id
, or the default value if location_id
is unset.
Sourcepub fn class_name(&self) -> &str
pub fn class_name(&self) -> &str
Returns the value of class_name
, or the default value if class_name
is unset.
Sourcepub fn object_size(&self) -> u64
pub fn object_size(&self) -> u64
Returns the value of object_size
, or the default value if object_size
is unset.
Sourcepub fn superclass_id(&self) -> u64
pub fn superclass_id(&self) -> u64
Returns the value of superclass_id
, or the default value if superclass_id
is unset.
Sourcepub fn kind(&self) -> Kind
pub fn kind(&self) -> Kind
Returns the enum value of kind
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn classloader_id(&self) -> u64
pub fn classloader_id(&self) -> u64
Returns the value of classloader_id
, or the default value if classloader_id
is unset.
Trait Implementations§
Source§impl Clone for HeapGraphType
impl Clone for HeapGraphType
Source§fn clone(&self) -> HeapGraphType
fn clone(&self) -> HeapGraphType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HeapGraphType
impl Debug for HeapGraphType
Source§impl Default for HeapGraphType
impl Default for HeapGraphType
Source§impl Message for HeapGraphType
impl Message for HeapGraphType
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.