#[repr(transparent)]pub struct ClockTicks(pub u64);Expand description
USER_HZ-scaled tick counter, accumulated by the kernel from
thread birth. The kernel exposes user-mode and kernel-mode
CPU time, plus delayacct blkio delay, in ticks of the
userspace-visible USER_HZ frequency. Auto-scale ladder is
ticks → Kticks → Mticks (decimal SI), kept distinct from
ns and bytes so the rendered cell carries the correct unit
suffix.
Examples: utime_clock_ticks, stime_clock_ticks. Same
lifetime-window contract as MonotonicNs; sum across a
group, delta across snapshots.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for ClockTicks
impl Clone for ClockTicks
Source§fn clone(&self) -> ClockTicks
fn clone(&self) -> ClockTicks
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClockTicks
impl Debug for ClockTicks
Source§impl Default for ClockTicks
impl Default for ClockTicks
Source§fn default() -> ClockTicks
fn default() -> ClockTicks
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClockTicks
impl<'de> Deserialize<'de> for ClockTicks
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ClockTicks
impl Display for ClockTicks
Source§impl From<ClockTicks> for u64
impl From<ClockTicks> for u64
Source§fn from(v: ClockTicks) -> Self
fn from(v: ClockTicks) -> Self
Converts to this type from the input type.
Source§impl From<u64> for ClockTicks
impl From<u64> for ClockTicks
Source§impl Hash for ClockTicks
impl Hash for ClockTicks
Source§impl Ord for ClockTicks
impl Ord for ClockTicks
Source§fn cmp(&self, other: &ClockTicks) -> Ordering
fn cmp(&self, other: &ClockTicks) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClockTicks
impl PartialEq for ClockTicks
Source§impl PartialOrd for ClockTicks
impl PartialOrd for ClockTicks
Source§impl Serialize for ClockTicks
impl Serialize for ClockTicks
Source§impl Summable for ClockTicks
impl Summable for ClockTicks
Source§fn sum_across(items: impl IntoIterator<Item = Self>) -> Self
fn sum_across(items: impl IntoIterator<Item = Self>) -> Self
Sum across the iterator, saturating at
u64::MAX.
Empty input collapses to the additive identity (zero).Source§fn try_sum_across(items: impl IntoIterator<Item = Self>) -> Option<Self>
fn try_sum_across(items: impl IntoIterator<Item = Self>) -> Option<Self>
Same total as
sum_across on every
non-empty input; returns None for an empty iterator so
callers can distinguish “no contributors” from “all
contributors summed to zero.” Useful when a downstream
derived metric (e.g. a ratio) needs to suppress the
row entirely rather than render 0 / 0. Read moreimpl Copy for ClockTicks
impl Eq for ClockTicks
impl StructuralPartialEq for ClockTicks
Auto Trait Implementations§
impl Freeze for ClockTicks
impl RefUnwindSafe for ClockTicks
impl Send for ClockTicks
impl Sync for ClockTicks
impl Unpin for ClockTicks
impl UnwindSafe for ClockTicks
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
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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>
Converts
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>
Converts
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