pub struct HeapGraphObject {
pub type_id: Option<u64>,
pub self_size: Option<u64>,
pub reference_field_id_base: Option<u64>,
pub reference_field_id: Vec<u64>,
pub reference_object_id: Vec<u64>,
pub native_allocation_registry_size_field: Option<i64>,
pub identifier: Option<Identifier>,
}Fields§
§type_id: Option<u64>Index for InternedData.types for the name of the type of this object.
self_size: Option<u64>Bytes occupied by this objects.
reference_field_id_base: Option<u64>Add this to all non-zero values in reference_object_id. This is used to get more compact varint encoding.
The name is confusing, but this has always been used as a base for reference_object_id. The field should be named reference_object_id_base.
reference_field_id: Vec<u64>Indices for InternedData.field_names for the name of the field referring to the object. For Android S+ and for instances of normal classes (e.g. not instances of java.lang.Class or arrays), this is instead set in the corresponding HeapGraphType, and this is left empty.
reference_object_id: Vec<u64>Ids of the Object that is referred to.
native_allocation_registry_size_field: Option<i64>If this object is an instance of libcore.util.NativeAllocationRegistry,
the value of the size field.
N.B. This is not the native size of this object.
identifier: Option<Identifier>Implementations§
Source§impl HeapGraphObject
impl HeapGraphObject
Sourcepub fn type_id(&self) -> u64
pub fn type_id(&self) -> u64
Returns the value of type_id, or the default value if type_id is unset.
Sourcepub fn self_size(&self) -> u64
pub fn self_size(&self) -> u64
Returns the value of self_size, or the default value if self_size is unset.
Sourcepub fn reference_field_id_base(&self) -> u64
pub fn reference_field_id_base(&self) -> u64
Returns the value of reference_field_id_base, or the default value if reference_field_id_base is unset.
Sourcepub fn native_allocation_registry_size_field(&self) -> i64
pub fn native_allocation_registry_size_field(&self) -> i64
Returns the value of native_allocation_registry_size_field, or the default value if native_allocation_registry_size_field is unset.
Trait Implementations§
Source§impl Clone for HeapGraphObject
impl Clone for HeapGraphObject
Source§fn clone(&self) -> HeapGraphObject
fn clone(&self) -> HeapGraphObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HeapGraphObject
impl Debug for HeapGraphObject
Source§impl Default for HeapGraphObject
impl Default for HeapGraphObject
Source§fn default() -> HeapGraphObject
fn default() -> HeapGraphObject
Source§impl Message for HeapGraphObject
impl Message for HeapGraphObject
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for HeapGraphObject
impl PartialEq for HeapGraphObject
impl StructuralPartialEq for HeapGraphObject
Auto Trait Implementations§
impl Freeze for HeapGraphObject
impl RefUnwindSafe for HeapGraphObject
impl Send for HeapGraphObject
impl Sync for HeapGraphObject
impl Unpin for HeapGraphObject
impl UnwindSafe for HeapGraphObject
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].