Struct aws_sdk_codeguruprofiler::model::agent_configuration::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for AgentConfiguration
Implementations
sourceimpl Builder
impl Builder
sourcepub fn should_profile(self, input: bool) -> Self
pub fn should_profile(self, input: bool) -> Self
A Boolean
that specifies whether the profiling agent collects profiling data or not. Set to true
to enable profiling.
sourcepub fn set_should_profile(self, input: Option<bool>) -> Self
pub fn set_should_profile(self, input: Option<bool>) -> Self
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, input: i32) -> Self
pub fn period_in_seconds(self, input: i32) -> Self
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 set_period_in_seconds(self, input: Option<i32>) -> Self
pub fn set_period_in_seconds(self, input: Option<i32>) -> Self
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,
k: AgentParameterField,
v: impl Into<String>
) -> Self
pub fn agent_parameters(
self,
k: AgentParameterField,
v: impl Into<String>
) -> Self
Adds a key-value pair to agent_parameters
.
To override the contents of this collection use set_agent_parameters
.
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.
sourcepub fn set_agent_parameters(
self,
input: Option<HashMap<AgentParameterField, String>>
) -> Self
pub fn set_agent_parameters(
self,
input: Option<HashMap<AgentParameterField, String>>
) -> Self
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.
sourcepub fn build(self) -> AgentConfiguration
pub fn build(self) -> AgentConfiguration
Consumes the builder and constructs a AgentConfiguration
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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