pub struct HeapGraph {
pub pid: Option<i32>,
pub objects: Vec<HeapGraphObject>,
pub roots: Vec<HeapGraphRoot>,
pub types: Vec<HeapGraphType>,
pub field_names: Vec<InternedString>,
pub location_names: Vec<InternedString>,
pub continued: Option<bool>,
pub index: Option<u64>,
}
Fields§
§pid: Option<i32>
§objects: Vec<HeapGraphObject>
This contains all objects at the time this dump was taken. Some of these will be live, some of those unreachable (garbage). To find the live objects, the client needs to build the transitive closure of objects reachable from |roots|. All objects not contained within that transitive closure are garbage that has not yet been collected.
roots: Vec<HeapGraphRoot>
Roots at the time this dump was taken. All live objects are reachable from the roots. All other objects are garbage.
types: Vec<HeapGraphType>
Types used in HeapGraphObjects.
field_names: Vec<InternedString>
Field names for references in managed heap graph.
location_names: Vec<InternedString>
Paths of files used in managed heap graph.
continued: Option<bool>
§index: Option<u64>
Implementations§
Trait Implementations§
Source§impl Message for HeapGraph
impl Message for HeapGraph
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for HeapGraph
Auto Trait Implementations§
impl Freeze for HeapGraph
impl RefUnwindSafe for HeapGraph
impl Send for HeapGraph
impl Sync for HeapGraph
impl Unpin for HeapGraph
impl UnwindSafe for HeapGraph
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
Mutably borrows from an owned value. Read more