pub struct MemoryReportBuilder { /* private fields */ }Expand description
Memory report builder for custom reports.
Implementations§
Source§impl MemoryReportBuilder
impl MemoryReportBuilder
Sourcepub fn current_bytes(self, bytes: u64) -> Self
pub fn current_bytes(self, bytes: u64) -> Self
Set current bytes.
Sourcepub fn peak_bytes(self, bytes: u64) -> Self
pub fn peak_bytes(self, bytes: u64) -> Self
Set peak bytes.
Sourcepub fn total_allocated(self, bytes: u64) -> Self
pub fn total_allocated(self, bytes: u64) -> Self
Set total allocated.
Sourcepub fn total_deallocated(self, bytes: u64) -> Self
pub fn total_deallocated(self, bytes: u64) -> Self
Set total deallocated.
Sourcepub fn allocation_count(self, count: u64) -> Self
pub fn allocation_count(self, count: u64) -> Self
Set allocation count.
Sourcepub fn deallocation_count(self, count: u64) -> Self
pub fn deallocation_count(self, count: u64) -> Self
Set deallocation count.
Sourcepub fn growth_rate(self, rate: f64) -> Self
pub fn growth_rate(self, rate: f64) -> Self
Set growth rate.
Sourcepub fn build(self) -> MemoryReport
pub fn build(self) -> MemoryReport
Build the memory report.
Trait Implementations§
Source§impl Default for MemoryReportBuilder
impl Default for MemoryReportBuilder
Source§fn default() -> MemoryReportBuilder
fn default() -> MemoryReportBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryReportBuilder
impl RefUnwindSafe for MemoryReportBuilder
impl Send for MemoryReportBuilder
impl Sync for MemoryReportBuilder
impl Unpin for MemoryReportBuilder
impl UnsafeUnpin for MemoryReportBuilder
impl UnwindSafe for MemoryReportBuilder
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