#[non_exhaustive]pub struct AgentConfiguration { /* private fields */ }
Expand description
The response of ConfigureAgent
that specifies if an agent profiles or not and for how long to return profiling data.
Implementations§
source§impl 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.
source§impl AgentConfiguration
impl AgentConfiguration
sourcepub fn builder() -> AgentConfigurationBuilder
pub fn builder() -> AgentConfigurationBuilder
Creates a new builder-style object to manufacture AgentConfiguration
.
Trait Implementations§
source§impl Clone for AgentConfiguration
impl Clone for AgentConfiguration
source§fn clone(&self) -> AgentConfiguration
fn clone(&self) -> AgentConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AgentConfiguration
impl Debug for AgentConfiguration
source§impl PartialEq<AgentConfiguration> for AgentConfiguration
impl PartialEq<AgentConfiguration> for AgentConfiguration
source§fn eq(&self, other: &AgentConfiguration) -> bool
fn eq(&self, other: &AgentConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.