Struct aws_sdk_codeguruprofiler::model::AgentConfiguration
source · [−]#[non_exhaustive]pub struct AgentConfiguration {
pub should_profile: Option<bool>,
pub period_in_seconds: Option<i32>,
pub agent_parameters: Option<HashMap<AgentParameterField, String>>,
}
Expand description
The response of ConfigureAgent
that specifies if an agent profiles or not and for how long to return profiling data.
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.should_profile: Option<bool>
A Boolean
that specifies whether the profiling agent collects profiling data or not. Set to true
to enable profiling.
period_in_seconds: Option<i32>
How long a profiling agent should send profiling data using ConfigureAgent
. For example, if this is set to 300, the profiling agent calls ConfigureAgent
every 5 minutes to submit the profiled data collected during that period.
agent_parameters: Option<HashMap<AgentParameterField, String>>
Parameters used by the profiler. The valid parameters are:
-
MaxStackDepth
- The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a methodA
, which calls methodB
, which calls methodC
, which calls methodD
, then the depth is 4. If themaxDepth
is set to 2, then the profiler evaluatesA
andB
. -
MemoryUsageLimitPercent
- The percentage of memory that is used by the profiler. -
MinimumTimeForReportingInMilliseconds
- The minimum time in milliseconds between sending reports. -
ReportingIntervalInMilliseconds
- The reporting interval in milliseconds used to report profiles. -
SamplingIntervalInMilliseconds
- The sampling interval in milliseconds that is used to profile samples.
Implementations
sourceimpl AgentConfiguration
impl AgentConfiguration
sourcepub fn should_profile(&self) -> Option<bool>
pub fn should_profile(&self) -> Option<bool>
A Boolean
that specifies whether the profiling agent collects profiling data or not. Set to true
to enable profiling.
sourcepub fn period_in_seconds(&self) -> Option<i32>
pub fn period_in_seconds(&self) -> Option<i32>
How long a profiling agent should send profiling data using ConfigureAgent
. For example, if this is set to 300, the profiling agent calls ConfigureAgent
every 5 minutes to submit the profiled data collected during that period.
sourcepub fn agent_parameters(&self) -> Option<&HashMap<AgentParameterField, String>>
pub fn agent_parameters(&self) -> Option<&HashMap<AgentParameterField, String>>
Parameters used by the profiler. The valid parameters are:
-
MaxStackDepth
- The maximum depth of the stacks in the code that is represented in the profile. For example, if CodeGuru Profiler finds a methodA
, which calls methodB
, which calls methodC
, which calls methodD
, then the depth is 4. If themaxDepth
is set to 2, then the profiler evaluatesA
andB
. -
MemoryUsageLimitPercent
- The percentage of memory that is used by the profiler. -
MinimumTimeForReportingInMilliseconds
- The minimum time in milliseconds between sending reports. -
ReportingIntervalInMilliseconds
- The reporting interval in milliseconds used to report profiles. -
SamplingIntervalInMilliseconds
- The sampling interval in milliseconds that is used to profile samples.
sourceimpl AgentConfiguration
impl AgentConfiguration
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AgentConfiguration
Trait Implementations
sourceimpl Clone for AgentConfiguration
impl Clone for AgentConfiguration
sourcefn clone(&self) -> AgentConfiguration
fn clone(&self) -> AgentConfiguration
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 AgentConfiguration
impl Debug for AgentConfiguration
sourceimpl PartialEq<AgentConfiguration> for AgentConfiguration
impl PartialEq<AgentConfiguration> for AgentConfiguration
sourcefn eq(&self, other: &AgentConfiguration) -> bool
fn eq(&self, other: &AgentConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AgentConfiguration) -> bool
fn ne(&self, other: &AgentConfiguration) -> bool
This method tests for !=
.
impl StructuralPartialEq for AgentConfiguration
Auto Trait Implementations
impl RefUnwindSafe for AgentConfiguration
impl Send for AgentConfiguration
impl Sync for AgentConfiguration
impl Unpin for AgentConfiguration
impl UnwindSafe for AgentConfiguration
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