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§fn default() -> HeapSample
fn default() -> HeapSample
Source§impl Message for HeapSample
impl Message for HeapSample
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 HeapSample
impl PartialEq for HeapSample
impl Copy for HeapSample
impl StructuralPartialEq for HeapSample
Auto Trait Implementations§
impl Freeze for HeapSample
impl RefUnwindSafe for HeapSample
impl Send for HeapSample
impl Sync for HeapSample
impl Unpin for HeapSample
impl UnwindSafe for HeapSample
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].