Struct aws_sdk_codeguruprofiler::model::FrameMetric
source · [−]#[non_exhaustive]pub struct FrameMetric {
pub frame_name: Option<String>,
pub type: Option<MetricType>,
pub thread_states: Option<Vec<String>>,
}
Expand description
The frame name, metric type, and thread states. These are used to derive the value of the metric for the frame.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.frame_name: Option<String>
Name of the method common across the multiple occurrences of a frame in an application profile.
type: Option<MetricType>
A type of aggregation that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated across the occurrences of all frames in a profile.
thread_states: Option<Vec<String>>
List of application runtime thread states used to get the counts for a frame a derive a metric value.
Implementations
sourceimpl FrameMetric
impl FrameMetric
sourcepub fn frame_name(&self) -> Option<&str>
pub fn frame_name(&self) -> Option<&str>
Name of the method common across the multiple occurrences of a frame in an application profile.
sourcepub fn type(&self) -> Option<&MetricType>
pub fn type(&self) -> Option<&MetricType>
A type of aggregation that specifies how a metric for a frame is analyzed. The supported value AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated across the occurrences of all frames in a profile.
sourcepub fn thread_states(&self) -> Option<&[String]>
pub fn thread_states(&self) -> Option<&[String]>
List of application runtime thread states used to get the counts for a frame a derive a metric value.
sourceimpl FrameMetric
impl FrameMetric
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture FrameMetric
Trait Implementations
sourceimpl Clone for FrameMetric
impl Clone for FrameMetric
sourcefn clone(&self) -> FrameMetric
fn clone(&self) -> FrameMetric
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FrameMetric
impl Debug for FrameMetric
sourceimpl PartialEq<FrameMetric> for FrameMetric
impl PartialEq<FrameMetric> for FrameMetric
sourcefn eq(&self, other: &FrameMetric) -> bool
fn eq(&self, other: &FrameMetric) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FrameMetric) -> bool
fn ne(&self, other: &FrameMetric) -> bool
This method tests for !=
.
impl StructuralPartialEq for FrameMetric
Auto Trait Implementations
impl RefUnwindSafe for FrameMetric
impl Send for FrameMetric
impl Sync for FrameMetric
impl Unpin for FrameMetric
impl UnwindSafe for FrameMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more