pub struct HeapSample {
pub callstack_id: Option<u64>,
pub self_allocated: Option<u64>,
pub self_freed: Option<u64>,
pub self_max: Option<u64>,
pub self_max_count: Option<u64>,
pub timestamp: Option<u64>,
pub alloc_count: Option<u64>,
pub free_count: Option<u64>,
}
Expand description
Next ID: 9
Fields§
§callstack_id: Option<u64>
§self_allocated: Option<u64>
bytes allocated at this callstack.
self_freed: Option<u64>
bytes allocated at this callstack that have been freed.
self_max: Option<u64>
Bytes allocated by this callstack but not freed at the time the malloc heap usage of this process was maximal. This is only set if dump_at_max is true in HeapprofdConfig. In that case, self_allocated, self_freed and self_idle will not be set.
self_max_count: Option<u64>
Number of allocations that were sampled at this callstack but not freed at the time the malloc heap usage of this process was maximal. This is only set if dump_at_max is true in HeapprofdConfig. In that case, self_allocated, self_freed and self_idle will not be set.
timestamp: Option<u64>
timestamp [opt]
alloc_count: Option<u64>
Number of allocations that were sampled at this callstack.
free_count: Option<u64>
Number of allocations that were sampled at this callstack that have been freed.
Implementations§
Source§impl HeapSample
impl HeapSample
Sourcepub fn callstack_id(&self) -> u64
pub fn callstack_id(&self) -> u64
Returns the value of callstack_id
, or the default value if callstack_id
is unset.
Sourcepub fn self_allocated(&self) -> u64
pub fn self_allocated(&self) -> u64
Returns the value of self_allocated
, or the default value if self_allocated
is unset.
Sourcepub fn self_freed(&self) -> u64
pub fn self_freed(&self) -> u64
Returns the value of self_freed
, or the default value if self_freed
is unset.
Sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
Returns the value of timestamp
, or the default value if timestamp
is unset.
Sourcepub fn alloc_count(&self) -> u64
pub fn alloc_count(&self) -> u64
Returns the value of alloc_count
, or the default value if alloc_count
is unset.
Sourcepub fn free_count(&self) -> u64
pub fn free_count(&self) -> u64
Returns the value of free_count
, or the default value if free_count
is unset.
Sourcepub fn self_max(&self) -> u64
pub fn self_max(&self) -> u64
Returns the value of self_max
, or the default value if self_max
is unset.
Sourcepub fn self_max_count(&self) -> u64
pub fn self_max_count(&self) -> u64
Returns the value of self_max_count
, or the default value if self_max_count
is unset.
Trait Implementations§
Source§impl Clone for HeapSample
impl Clone for HeapSample
Source§fn clone(&self) -> HeapSample
fn clone(&self) -> HeapSample
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HeapSample
impl Debug for HeapSample
Source§impl Default for HeapSample
impl Default for HeapSample
Source§impl Message for HeapSample
impl Message for HeapSample
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
.