pub struct HeapSample {
pub timestamp_ms: u64,
pub rss_bytes: usize,
pub virtual_bytes: usize,
pub heap_used: Option<usize>,
}Expand description
A point-in-time sample of heap state.
Fields§
§timestamp_ms: u64Timestamp (ms since profiler start).
rss_bytes: usizeResident set size (RSS).
virtual_bytes: usizeVirtual memory size.
heap_used: Option<usize>Heap used (if available).
Implementations§
Source§impl HeapSample
impl HeapSample
Trait Implementations§
Source§impl Clone for HeapSample
impl Clone for HeapSample
Source§fn clone(&self) -> HeapSample
fn clone(&self) -> HeapSample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
Mutably borrows from an owned value. Read more