pub struct CgroupMemoryWatch { /* private fields */ }Expand description
Reads CgroupMemory repeatedly for a watch, finding the lowest limit’s level again after a
failed read. Below Self::STAT_FROM_PERCENT of the limit the working set is the charge.
Implementations§
Source§impl CgroupMemoryWatch
impl CgroupMemoryWatch
Sourcepub const STAT_FROM_PERCENT: u64 = 90
pub const STAT_FROM_PERCENT: u64 = 90
Below this share of the limit the page cache is not worth parsing.
Sourcepub fn read(&mut self) -> Option<CgroupMemory>
pub fn read(&mut self) -> Option<CgroupMemory>
None without a limit, or when the level just stopped answering.
Trait Implementations§
Source§impl Debug for CgroupMemoryWatch
impl Debug for CgroupMemoryWatch
Auto Trait Implementations§
impl Forget for CgroupMemoryWatch
impl Freeze for CgroupMemoryWatch
impl Move for CgroupMemoryWatch
impl RefUnwindSafe for CgroupMemoryWatch
impl Send for CgroupMemoryWatch
impl Sync for CgroupMemoryWatchwhere
RawVecInner: Sync,
impl Unpin for CgroupMemoryWatch
impl UnsafeUnpin for CgroupMemoryWatch
impl UnwindSafe for CgroupMemoryWatch
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