| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeGuruProfiler.Types.AgentConfiguration
Description
Synopsis
- data AgentConfiguration = AgentConfiguration' {}
- newAgentConfiguration :: Int -> Bool -> AgentConfiguration
- agentConfiguration_agentParameters :: Lens' AgentConfiguration (Maybe (HashMap AgentParameterField Text))
- agentConfiguration_periodInSeconds :: Lens' AgentConfiguration Int
- agentConfiguration_shouldProfile :: Lens' AgentConfiguration Bool
Documentation
data AgentConfiguration Source #
The response of ConfigureAgent that specifies if an agent profiles or not and for how long to return profiling data.
See: newAgentConfiguration smart constructor.
Constructors
| AgentConfiguration' | |
Fields
| |
Instances
newAgentConfiguration Source #
Arguments
| :: Int | |
| -> Bool | |
| -> AgentConfiguration |
Create a value of AgentConfiguration with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:agentParameters:AgentConfiguration', agentConfiguration_agentParameters - 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 themaxDepthis set to 2, then the profiler evaluatesAandB.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.
$sel:periodInSeconds:AgentConfiguration', agentConfiguration_periodInSeconds - 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.
$sel:shouldProfile:AgentConfiguration', agentConfiguration_shouldProfile - A Boolean that specifies whether the profiling agent collects
profiling data or not. Set to true to enable profiling.
agentConfiguration_agentParameters :: Lens' AgentConfiguration (Maybe (HashMap AgentParameterField Text)) Source #
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 themaxDepthis set to 2, then the profiler evaluatesAandB.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.
agentConfiguration_periodInSeconds :: Lens' AgentConfiguration Int Source #
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.
agentConfiguration_shouldProfile :: Lens' AgentConfiguration Bool Source #
A Boolean that specifies whether the profiling agent collects
profiling data or not. Set to true to enable profiling.