pub struct ActivationProfile {
pub definition: String,
pub coverage: CapabilityState,
pub host_time: CapabilityState,
pub device_time: CapabilityState,
pub dense_output: CapabilityState,
pub logical_memory: CapabilityState,
pub physical_memory_attribution: CapabilityState,
pub unattributed_activation_storages: usize,
pub operations: Vec<ActivationOperation>,
}Expand description
Activation hotspot evidence for one profile run.
Fields§
§definition: String§coverage: CapabilityState§host_time: CapabilityState§device_time: CapabilityState§dense_output: CapabilityState§logical_memory: CapabilityState§physical_memory_attribution: CapabilityStatePhysical samples do not carry operation or activation identity.
unattributed_activation_storages: usize§operations: Vec<ActivationOperation>Implementations§
Source§impl ActivationProfile
impl ActivationProfile
Sourcepub fn top_by<K: Ord>(
&self,
key: impl Fn(&ActivationOperation) -> Option<K>,
) -> Option<&ActivationOperation>
pub fn top_by<K: Ord>( &self, key: impl Fn(&ActivationOperation) -> Option<K>, ) -> Option<&ActivationOperation>
Largest operation by key. Ties resolve to the lexicographically smallest id, so every
headline agrees with the query rankings derived from ActivationProfile::ranked_by.
Sourcepub fn ranked_by<K: Ord>(
&self,
key: impl Fn(&ActivationOperation) -> Option<K>,
) -> Vec<&ActivationOperation>
pub fn ranked_by<K: Ord>( &self, key: impl Fn(&ActivationOperation) -> Option<K>, ) -> Vec<&ActivationOperation>
Operations carrying the metric, ranked descending by key; ties resolve to the
lexicographically smallest id. Operations without the metric are excluded.
Trait Implementations§
Source§impl Clone for ActivationProfile
impl Clone for ActivationProfile
Source§fn clone(&self) -> ActivationProfile
fn clone(&self) -> ActivationProfile
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 moreSource§impl Debug for ActivationProfile
impl Debug for ActivationProfile
Source§impl<'de> Deserialize<'de> for ActivationProfile
impl<'de> Deserialize<'de> for ActivationProfile
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
impl Eq for ActivationProfile
Source§impl PartialEq for ActivationProfile
impl PartialEq for ActivationProfile
Source§impl Serialize for ActivationProfile
impl Serialize for ActivationProfile
impl StructuralPartialEq for ActivationProfile
Auto Trait Implementations§
impl Freeze for ActivationProfile
impl RefUnwindSafe for ActivationProfile
impl Send for ActivationProfile
impl Sync for ActivationProfile
impl Unpin for ActivationProfile
impl UnsafeUnpin for ActivationProfile
impl UnwindSafe for ActivationProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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