MonitorConfig class

Configuration class for the Performance Monitor

Constructors

MonitorConfig({bool showMemory = true, bool showLogs = true, bool trackStartup = true, bool interceptNetwork = true, int fpsWarningThreshold = 45, int memoryWarningThreshold = 500 * 1024 * 1024, bool enableNetworkMonitoring = true, bool enableBatteryMonitoring = true, bool enableDeviceInfo = true, LogLevel logLevel = LogLevel.info, bool exportLogs = false, bool enableDiskMonitoring = true, double diskWarningThreshold = 90.0})
Creates a new monitor configuration
const

Properties

diskWarningThreshold double
Disk usage warning threshold (percentage)
final
enableBatteryMonitoring bool
Whether to enable battery monitoring
final
enableDeviceInfo bool
Whether to enable device info collection
final
enableDiskMonitoring bool
Whether to enable disk usage monitoring
final
enableNetworkMonitoring bool
Whether to enable network monitoring
final
exportLogs bool
Whether to export logs
final
fpsWarningThreshold int
FPS threshold below which a warning is triggered
final
hashCode int
The hash code for this object.
no setterinherited
interceptNetwork bool
Whether to intercept network requests
final
logLevel LogLevel
Log level for the monitor
final
memoryWarningThreshold int
Memory threshold (in bytes) above which a warning is triggered
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLogs bool
Whether to show logs
final
showMemory bool
Whether to show memory usage tracking
final
trackStartup bool
Whether to track app startup time
final

Methods

copyWith({bool? showMemory, bool? showLogs, bool? trackStartup, bool? interceptNetwork, int? fpsWarningThreshold, int? memoryWarningThreshold, bool? enableNetworkMonitoring, bool? enableBatteryMonitoring, bool? enableDeviceInfo, LogLevel? logLevel, bool? exportLogs, bool? enableDiskMonitoring, double? diskWarningThreshold}) MonitorConfig
Creates a copy of this configuration with the given fields replaced
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