pub struct GroupByOrDefault(pub GroupBy);Expand description
Newtype wrapper around GroupBy that defaults to
GroupBy::Pcomm. Separate type so CompareOptions::default()
does not need to spell out every field.
Tuple Fields§
§0: GroupByTrait Implementations§
Source§impl Clone for GroupByOrDefault
impl Clone for GroupByOrDefault
Source§fn clone(&self) -> GroupByOrDefault
fn clone(&self) -> GroupByOrDefault
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 GroupByOrDefault
impl Debug for GroupByOrDefault
Source§impl Default for GroupByOrDefault
impl Default for GroupByOrDefault
Source§fn default() -> Self
fn default() -> Self
Defaults to GroupBy::Pcomm — parent-comm is the most
stable per-process identity across versions / runs (a
kernel-build version change typically does NOT rename
parent comms, whereas pid values shuffle every run and
comm values can drift if the binary is renamed). When two
ctprof runs are compared, grouping by Pcomm aligns
equivalent workloads even when their per-invocation pids
differ.
Source§impl From<GroupBy> for GroupByOrDefault
impl From<GroupBy> for GroupByOrDefault
Source§impl PartialEq for GroupByOrDefault
impl PartialEq for GroupByOrDefault
impl Copy for GroupByOrDefault
impl Eq for GroupByOrDefault
impl StructuralPartialEq for GroupByOrDefault
Auto Trait Implementations§
impl Freeze for GroupByOrDefault
impl RefUnwindSafe for GroupByOrDefault
impl Send for GroupByOrDefault
impl Sync for GroupByOrDefault
impl Unpin for GroupByOrDefault
impl UnwindSafe for GroupByOrDefault
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> 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