AppResourceMonitoringConfig class

Configuration for RuntimeInsight.startMonitoring.

Controls which metrics are collected, the polling interval, and the window size for moving-average calculations.

Constructors

AppResourceMonitoringConfig({bool cpu = true, bool memory = true, bool fps = true, bool network = true, bool disk = true, bool http = false, Duration interval = const Duration(seconds: 1), int movingAverageWindow = 5})
const

Properties

cpu bool
Whether to collect CPU usage.
final
disk bool
Whether to collect disk bytes.
final
fps bool
Whether to collect FPS.
final
hashCode int
The hash code for this object.
no setteroverride
http bool
Whether to track HTTP requests.
final
interval Duration
How often a snapshot is emitted.
final
memory bool
Whether to collect memory usage.
final
movingAverageWindow int
Number of recent snapshots used for moving-average calculations.
final
network bool
Whether to collect network bytes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? cpu, bool? memory, bool? fps, bool? network, bool? disk, bool? http, Duration? interval, int? movingAverageWindow}) AppResourceMonitoringConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override