pub struct MmapStats;
Expand description
Provides few statistics about low level segment allocation.
This stats can be useful to debug or to export in various monitoring systems.
Implementations§
Source§impl MmapStats
impl MmapStats
Sourcepub fn active_segment(&self) -> u64
pub fn active_segment(&self) -> u64
Get number of current segment mounted by this library.
On linux there is a sysctl
limit you can access with:
sysctl vm.max_map_count
Sourcepub fn ftruncate_failed(&self) -> u64
pub fn ftruncate_failed(&self) -> u64
Get number of file truncate failed.
Sourcepub fn map_failed(&self) -> u64
pub fn map_failed(&self) -> u64
Get number of segment creation failed.
Sourcepub fn unmap_failed(&self) -> u64
pub fn unmap_failed(&self) -> u64
Get number of segment deletion failed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MmapStats
impl RefUnwindSafe for MmapStats
impl Send for MmapStats
impl Sync for MmapStats
impl Unpin for MmapStats
impl UnwindSafe for MmapStats
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