pub struct SelfOverhead {
pub cpu: Percent,
pub rss_bytes: u64,
pub history_bytes: u64,
pub open_files: MetricState<u32>,
}Expand description
monitrs’s own resource use.
Fields§
§cpu: PercentOur own CPU usage, core-normalized. Budget: median < 1% (§16.1).
rss_bytes: u64Our own resident memory. Budget: < 50 MiB by default (§16.1).
history_bytes: u64Bytes the history ring currently occupies, against the configured budget.
open_files: MetricState<u32>Open file descriptors, watched for the unbounded-growth check (§16.1).
Trait Implementations§
Source§impl Clone for SelfOverhead
impl Clone for SelfOverhead
Source§fn clone(&self) -> SelfOverhead
fn clone(&self) -> SelfOverhead
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelfOverhead
Source§impl Debug for SelfOverhead
impl Debug for SelfOverhead
Source§impl PartialEq for SelfOverhead
impl PartialEq for SelfOverhead
impl StructuralPartialEq for SelfOverhead
Auto Trait Implementations§
impl Freeze for SelfOverhead
impl RefUnwindSafe for SelfOverhead
impl Send for SelfOverhead
impl Sync for SelfOverhead
impl Unpin for SelfOverhead
impl UnsafeUnpin for SelfOverhead
impl UnwindSafe for SelfOverhead
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