ArgosConfig class
Constructors
-
ArgosConfig({List<
String> ? hostWhiteList, List<ArgosCapability> ? apmTypes, bool enableStorage = false, ArgosSessionMode sessionMode = ArgosSessionMode.automatic, ArgosAutomaticSessionPolicy automaticSessionPolicy = const ArgosAutomaticSessionPolicy.process(), int maxSessions = 5, int maxPacketRecords = 200, int resourceMaxRecords = 50, String? proxyProvider()?, ArgosStorageAdapter? storageAdapter, double jankThresholdMultiplier = 1.0, Duration resourceSampleInterval = const Duration(seconds: 2), Duration storagePersistInterval = const Duration(seconds: 5)})
Properties
-
apmTypes
→ List<
ArgosCapability> ? -
final
- automaticSessionPolicy → ArgosAutomaticSessionPolicy
-
Controls whether an automatically created session spans the process or
rolls at configured adaptive boundaries.
final
- enableStorage → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostWhiteList
→ List<
String> ? -
final
- jankThresholdMultiplier → double
-
Jank detection: a frame whose total span exceeds
frameBudget * jankThresholdMultiplieris treated as a dropped frame. Defaults to 1.0 (one frame budget).final - maxPacketRecords → int
-
Retention cap applied to each non-resource kind (network / crash / jank)
independently. Note: this is now a per-kind cap, not a total across all
records — resource samples are bounded separately by resourceMaxRecords
so a fast sampler can never evict a captured crash.
final
- maxSessions → int
-
Maximum number of persisted diagnostic sessions.
final
- proxyProvider → String? Function()?
-
final
- resourceMaxRecords → int
-
Retention cap for
resourcerecords specifically. Kept small because the resource monitor persists a sample every resourceSampleInterval; a tighter cap stops routine memory samples from crowding storage while still leaving a rolling window to read a trend from.final - resourceSampleInterval → Duration
-
Resource monitor sampling period. Defaults to 2 seconds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sessionMode → ArgosSessionMode
-
Automatic mode starts on first init only when storage is enabled.
final
- storageAdapter → ArgosStorageAdapter?
-
final
- storagePersistInterval → Duration
-
How long the storage layer coalesces writes before flushing to disk.
Coalescing keeps the synchronous
jsonEncodeoff the per-write hot path; the cost is a bounded crash-loss window (records written since the last flush or backgrounding).Duration.zerodisables coalescing — every write persists immediately, no window. Defaults to 5 seconds.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited