pub struct Digest {
pub buckets: Vec<Bucket>,
}
Expand description
Contains a view of the system’s memory usage, aggregated in groups called buckets, which are configurable.
Fields§
§buckets: Vec<Bucket>
Implementations§
Source§impl Digest
impl Digest
Sourcepub fn new(
attribution_data: &AttributionData,
kmem_stats: MemoryStats,
kmem_stats_compression: MemoryStatsCompression,
bucket_definitions: &Vec<BucketDefinition>,
) -> Self
pub fn new( attribution_data: &AttributionData, kmem_stats: MemoryStats, kmem_stats_compression: MemoryStatsCompression, bucket_definitions: &Vec<BucketDefinition>, ) -> Self
Given means to query the system for memory usage, and a specification, this function aggregates the current memory usage into human displayable units we call buckets.
Trait Implementations§
impl Eq for Digest
impl StructuralPartialEq for Digest
Auto Trait Implementations§
impl Freeze for Digest
impl RefUnwindSafe for Digest
impl Send for Digest
impl Sync for Digest
impl Unpin for Digest
impl UnwindSafe for Digest
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