#[repr(transparent)]pub struct GaugeNs(pub u64);Expand description
Instantaneous gauge sampled at capture time, nanoseconds.
Distinct from PeakNs: a gauge is a snapshot of the
CURRENT value of a kernel field, not a lifetime maximum.
fair_slice_ns reads the per-thread slice line from
/proc/<tid>/sched, which carries the scheduler’s current
timeslice for the task — a point-in-time reading, not a
thread-lifetime accumulator. Cross-field ratios with
MonotonicNs / MonotonicCount / etc. produce a
quantity with mixed temporal interpretation (numerator
integrates from thread birth, denominator samples the
present), so callers should treat such ratios as a
rough hint rather than a well-defined fraction.
Group reduction takes max across contributors. Sum across
threads is a category error — does not implement Summable.
Implements Maxable.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for GaugeNs
impl<'de> Deserialize<'de> for GaugeNs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Maxable for GaugeNs
impl Maxable for GaugeNs
fn max_across(items: impl IntoIterator<Item = Self>) -> Option<Self>
Source§impl Ord for GaugeNs
impl Ord for GaugeNs
Source§impl PartialOrd for GaugeNs
impl PartialOrd for GaugeNs
impl Copy for GaugeNs
impl Eq for GaugeNs
impl StructuralPartialEq for GaugeNs
Auto Trait Implementations§
impl Freeze for GaugeNs
impl RefUnwindSafe for GaugeNs
impl Send for GaugeNs
impl Sync for GaugeNs
impl Unpin for GaugeNs
impl UnwindSafe for GaugeNs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more